Skip to content

Commit 71a4bce

Browse files
authored
chore: remove a couple of dependencies (#12249)
1 parent 6c214d6 commit 71a4bce

File tree

3 files changed

+17
-30
lines changed

3 files changed

+17
-30
lines changed

playgrounds/sandbox/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
"lint": "prettier --check . && eslint"
1010
},
1111
"dependencies": {
12-
"@types/minimist": "^1.2.5",
13-
"minimist": "^1.2.8",
1412
"svelte": "workspace:^",
1513
"tiny-glob": "^0.2.9"
1614
}

playgrounds/sandbox/run.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as fs from 'node:fs';
22
import * as path from 'node:path';
33
import { fileURLToPath } from 'node:url';
4+
import { parseArgs } from 'node:util';
45
import glob from 'tiny-glob/sync.js';
5-
import minimist from 'minimist';
66
import { compile, compileModule, parse, migrate } from 'svelte/compiler';
77

8-
const argv = minimist(process.argv.slice(2));
8+
const argv = parseArgs({ options: { runes: { type: 'boolean' } }, args: process.argv.slice(2) });
99

1010
const cwd = fileURLToPath(new URL('.', import.meta.url)).slice(0, -1);
1111

@@ -60,7 +60,7 @@ for (const generate of /** @type {const} */ (['client', 'server'])) {
6060
dev: true,
6161
filename: input,
6262
generate,
63-
runes: argv.runes
63+
runes: argv.values.runes
6464
});
6565

6666
fs.writeFileSync(

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)