Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ disallowed-types = [
]

disallowed-macros = [
{ path = "std::format", reason = "Use `vite_str::format` for small strings." }
{ path = "std::format", reason = "Use `vite_str::format` for small strings." },
]
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ jobs:
with:
save-cache: ${{ github.ref_name == 'main' }}
cache-key: lint
tools: cargo-shear
tools: dprint,cargo-shear
components: clippy rust-docs rustfmt

- run: |
dprint check
cargo shear
cargo fmt --check
# cargo clippy --all-targets --all-features -- -D warnings
Expand Down
2 changes: 1 addition & 1 deletion crates/fspy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ For fully static binaries (such as `esbuild`), `LD_PRELOAD` does not work. In th
It uses [Detours](https://github.com/microsoft/Detours) to intercept file system calls. The implementation is in `src/windows`.

## Unified interface
The unified interface of `Command` is in `src/command.rs`.

The unified interface of `Command` is in `src/command.rs`.

## Preload Libraries

Expand Down
2 changes: 1 addition & 1 deletion crates/fspy_shared/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# fspy_shared

Common code shared by `fspy` (run in the supervisor process) and `fspy_preload_*` (run in target processes).
Common code shared by `fspy` (run in the supervisor process) and `fspy_preload_*` (run in target processes).
6 changes: 3 additions & 3 deletions crates/vite_task/docs/vite-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Examples

```yaml
packages:
- "packages/*"
- "apps/*"
- "!**/test/**"
- 'packages/*'
- 'apps/*'
- '!**/test/**'
```

/path/to/package.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "."
- '.'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "packages/*"
- 'packages/*'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "packages/*"
- 'packages/*'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "packages/*"
- 'packages/*'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "packages/*"
- 'packages/*'
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- "packages/*"
- "apps/*"
- 'packages/*'
- 'apps/*'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "packages/*"
- 'packages/*'
1 change: 1 addition & 0 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"quotes": "preferSingle"
},
"excludes": [
"crates/fspy_detours_sys/detours",
"pnpm-lock.yaml",
"packages/cli/binding/index.d.ts",
"packages/cli/binding/index.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "."
- '.'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "."
- '.'
2 changes: 1 addition & 1 deletion packages/global/verdaccio.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
"**":
'**':
access: $all
publish: $all
proxy: npmjs
Expand Down
10 changes: 5 additions & 5 deletions packages/tools/src/json-edit.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/usr/bin/env node

import { readFileSync, writeFileSync } from 'node:fs'
import { readFileSync, writeFileSync } from 'node:fs';

const filename = process.argv[2];
const script = process.argv[3];

if (!filename || !script) {
console.error('Usage: json-edit <filename> <script>');
console.error('Example: json-edit package.json \'_.version = "1.2.3"\'');
process.exit(1);
console.error('Usage: json-edit <filename> <script>');
console.error('Example: json-edit package.json \'_.version = "1.2.3"\'');
process.exit(1);
}

const json = JSON.parse(readFileSync(filename, 'utf-8'));
const func = new Function('_', script + "; return _;");
const func = new Function('_', script + '; return _;');
const result = func(json);

writeFileSync(filename, JSON.stringify(result, null, 2) + '\n', 'utf-8');