sv 0.12.2 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +5 -5
- package/dist/{add-RNKqR0_d.mjs → engine-52M6yw67.mjs} +2240 -2096
- package/dist/engine-BZ0rj9tz.d.mts +359 -0
- package/dist/{package-manager-B3sMOeTk.mjs → package-manager-BYzDyeam.mjs} +2650 -231
- package/dist/shared.json +3 -3
- package/dist/src/index.d.mts +25 -0
- package/dist/src/index.mjs +4 -0
- package/dist/{lib → src}/testing.d.mts +4 -5
- package/dist/{lib → src}/testing.mjs +2 -4
- package/dist/templates/addon/assets/src/index.js +2 -1
- package/dist/templates/addon/package.json +2 -1
- package/dist/templates/demo/assets/DOT-vscode/extensions.json +3 -0
- package/dist/templates/library/assets/DOT-vscode/extensions.json +3 -0
- package/dist/templates/minimal/assets/DOT-vscode/extensions.json +3 -0
- package/package.json +11 -22
- package/dist/add-BP-WJ6Sw.d.mts +0 -38
- package/dist/chunk-BcJDCUAU.mjs +0 -45
- package/dist/core-VSHdSalh.d.mts +0 -788
- package/dist/lib/core.d.mts +0 -2
- package/dist/lib/core.mjs +0 -3
- package/dist/lib/index.d.mts +0 -16
- package/dist/lib/index.mjs +0 -5
- package/dist/utils-D-OWcBXG.mjs +0 -41170
package/dist/bin.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { f as program, l as from, r as detectPackageManager, u as Command } from "./package-manager-BYzDyeam.mjs";
|
|
3
|
+
import { a as helpConfig, i as forwardExitCode, n as add, o as name, r as create, s as version } from "./engine-52M6yw67.mjs";
|
|
4
|
+
import { color, resolveCommand } from "@sveltejs/sv-utils";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { execSync } from "node:child_process";
|
|
7
7
|
|
|
8
|
-
//#region
|
|
8
|
+
//#region src/cli/check.ts
|
|
9
9
|
const check = new Command("check").description("a CLI for checking your Svelte code").allowUnknownOption(true).allowExcessArguments(true).option("-C, --cwd <path>", "path to working directory", process.cwd()).helpOption(false).action(async (options, check$1) => {
|
|
10
10
|
const cwd$1 = options.cwd;
|
|
11
11
|
const args = check$1.args;
|
|
@@ -36,7 +36,7 @@ async function runCheck(cwd$1, args) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region
|
|
39
|
+
//#region src/cli/migrate.ts
|
|
40
40
|
const migrate = new Command("migrate").description("a CLI for migrating Svelte(Kit) codebases").argument("[migration]", "migration to run").option("-C, --cwd <path>", "path to working directory", process.cwd()).action(async (migration, options) => {
|
|
41
41
|
await runMigrate(options.cwd, [migration]);
|
|
42
42
|
});
|