Skip to content

Commit db35a29

Browse files
committed
chore: bump vite-task to 8daa9bb7
1 parent 1eae988 commit db35a29

4 files changed

Lines changed: 37 additions & 106 deletions

File tree

.github/workflows/test-vp-create.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -426,16 +426,10 @@ jobs:
426426
fi
427427
output=$(vp run ready 2>&1)
428428
echo "$output"
429-
details=$(vp run --last-details 2>&1)
430-
echo "--- vp run --last-details ---"
431-
echo "$details"
432-
combined=$(printf '%s\n%s\n' "$output" "$details")
433-
if echo "$combined" | grep -qi 'cache miss:'; then
434-
echo "✗ Expected no cacheable task misses"
429+
if ! echo "$output" | grep -q 'cache hit (100%)'; then
430+
echo "✗ Expected 100% cache hit"
431+
echo "--- vp run --last-details (cache-miss diagnostics) ---"
432+
vp run --last-details || true
435433
exit 1
436434
fi
437-
if ! echo "$details" | grep -q 'Cache hit - output replayed'; then
438-
echo "✗ Expected at least one cacheable task hit"
439-
exit 1
440-
fi
441-
echo "✓ cacheable task hits verified"
435+
echo "✓ 100% cache hit verified"

Cargo.lock

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ dunce = "1.0.5"
193193
fast-glob = "1.0.0"
194194
flate2 = { version = "=1.1.9", features = ["zlib-rs"] }
195195
form_urlencoded = "1.2.1"
196-
fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "89613544afe3e001d0c935c75c78697ce42df45f" }
196+
fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8daa9bb72faa89b745cb58c087b416b15d3bddc5" }
197197
futures = "0.3.31"
198198
futures-util = "0.3.31"
199199
glob = "0.3.2"
@@ -303,11 +303,11 @@ vite_pm_cli = { path = "crates/vite_pm_cli" }
303303
vite_setup = { path = "crates/vite_setup" }
304304
vite_shared = { path = "crates/vite_shared" }
305305
vite_static_config = { path = "crates/vite_static_config" }
306-
vite_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "89613544afe3e001d0c935c75c78697ce42df45f" }
307-
vite_powershell = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "89613544afe3e001d0c935c75c78697ce42df45f" }
308-
vite_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "89613544afe3e001d0c935c75c78697ce42df45f" }
309-
vite_task = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "89613544afe3e001d0c935c75c78697ce42df45f" }
310-
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "89613544afe3e001d0c935c75c78697ce42df45f" }
306+
vite_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8daa9bb72faa89b745cb58c087b416b15d3bddc5" }
307+
vite_powershell = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8daa9bb72faa89b745cb58c087b416b15d3bddc5" }
308+
vite_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8daa9bb72faa89b745cb58c087b416b15d3bddc5" }
309+
vite_task = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8daa9bb72faa89b745cb58c087b416b15d3bddc5" }
310+
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8daa9bb72faa89b745cb58c087b416b15d3bddc5" }
311311
walkdir = "2.5.0"
312312
wax = "0.6.0"
313313
which = "8.0.0"

packages/cli/src/migration/__tests__/migrator.spec.ts

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const {
3535
injectCreateDefaultTemplate,
3636
injectFmtDefaults,
3737
injectLintTypeCheckDefaults,
38-
mergeViteConfigFiles,
3938
rewriteEslintPackageJson,
4039
detectIncompatibleEslintIntegration,
4140
preflightGitHooksSetup,
@@ -4783,68 +4782,6 @@ export default defineConfig(({ mode }) => {
47834782
});
47844783
});
47854784

4786-
describe('mergeViteConfigFiles - migrated Oxlint config sanitization', () => {
4787-
let tmpDir: string;
4788-
4789-
beforeEach(() => {
4790-
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'vp-migrator-oxlint-sanitize-'));
4791-
fs.writeFileSync(path.join(tmpDir, 'package.json'), JSON.stringify({ name: 'test' }, null, 2));
4792-
});
4793-
4794-
afterEach(() => {
4795-
fs.rmSync(tmpDir, { recursive: true, force: true });
4796-
});
4797-
4798-
it('strips JSX a11y rule options unsupported by bundled Oxlint', () => {
4799-
fs.writeFileSync(
4800-
path.join(tmpDir, '.oxlintrc.json'),
4801-
JSON.stringify(
4802-
{
4803-
plugins: ['jsx-a11y'],
4804-
rules: {
4805-
'jsx-a11y/control-has-associated-label': [
4806-
'error',
4807-
{
4808-
includeRoles: ['button'],
4809-
ignoreRoles: ['menu'],
4810-
depth: 3,
4811-
},
4812-
],
4813-
'jsx-a11y/no-noninteractive-element-to-interactive-role': [
4814-
'error',
4815-
{
4816-
ul: ['listbox'],
4817-
},
4818-
],
4819-
},
4820-
},
4821-
null,
4822-
2,
4823-
),
4824-
);
4825-
4826-
const report = createMigrationReport();
4827-
mergeViteConfigFiles(tmpDir, true, report);
4828-
4829-
const viteConfig = fs.readFileSync(path.join(tmpDir, 'vite.config.ts'), 'utf8');
4830-
expect(viteConfig).toContain('"jsx-a11y/control-has-associated-label"');
4831-
expect(viteConfig).toContain('"ignoreRoles"');
4832-
expect(viteConfig).toContain('"depth": 3');
4833-
expect(viteConfig).not.toContain('includeRoles');
4834-
expect(viteConfig).not.toContain('"ul"');
4835-
expect(viteConfig).toContain('"jsx-a11y/no-noninteractive-element-to-interactive-role"');
4836-
expect(viteConfig).toMatch(
4837-
/"jsx-a11y\/no-noninteractive-element-to-interactive-role": \[\s*"error",\s*\{\s*\}\s*\]/,
4838-
);
4839-
expect(report.warnings.join('\n')).toContain(
4840-
'jsx-a11y/control-has-associated-label.includeRoles',
4841-
);
4842-
expect(report.warnings.join('\n')).toContain(
4843-
'jsx-a11y/no-noninteractive-element-to-interactive-role.ul',
4844-
);
4845-
});
4846-
});
4847-
48484785
describe('rewriteStandaloneProject — lazy plugin wrapping', () => {
48494786
let tmpDir: string;
48504787

0 commit comments

Comments
 (0)