sv 0.8.6 → 0.8.7
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.js +4 -6
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -12,7 +12,7 @@ import { promisify } from "node:util";
|
|
|
12
12
|
|
|
13
13
|
//#region packages/cli/package.json
|
|
14
14
|
var name = "sv";
|
|
15
|
-
var version = "0.8.
|
|
15
|
+
var version = "0.8.7";
|
|
16
16
|
var type = "module";
|
|
17
17
|
var description = "A CLI for creating and updating SvelteKit projects";
|
|
18
18
|
var license = "MIT";
|
|
@@ -1243,7 +1243,7 @@ var drizzle_default = defineAddon({
|
|
|
1243
1243
|
options: options$5,
|
|
1244
1244
|
setup: ({ kit, unsupported, cwd, typescript }) => {
|
|
1245
1245
|
const ext = typescript ? "ts" : "js";
|
|
1246
|
-
if (!kit) unsupported("Requires SvelteKit");
|
|
1246
|
+
if (!kit) return unsupported("Requires SvelteKit");
|
|
1247
1247
|
const baseDBPath = path.resolve(kit.libDirectory, "server", "db");
|
|
1248
1248
|
const paths = {
|
|
1249
1249
|
"drizzle config": path.relative(cwd, path.resolve(cwd, `drizzle.config.${ext}`)),
|
|
@@ -1343,7 +1343,6 @@ var drizzle_default = defineAddon({
|
|
|
1343
1343
|
if (options$6.database === "sqlite") {
|
|
1344
1344
|
imports_exports.addNamed(ast, "drizzle-orm/sqlite-core", {
|
|
1345
1345
|
sqliteTable: "sqliteTable",
|
|
1346
|
-
text: "text",
|
|
1347
1346
|
integer: "integer"
|
|
1348
1347
|
});
|
|
1349
1348
|
userSchemaExpression = common_exports.expressionFromString(`sqliteTable('user', {
|
|
@@ -1355,7 +1354,6 @@ var drizzle_default = defineAddon({
|
|
|
1355
1354
|
imports_exports.addNamed(ast, "drizzle-orm/mysql-core", {
|
|
1356
1355
|
mysqlTable: "mysqlTable",
|
|
1357
1356
|
serial: "serial",
|
|
1358
|
-
text: "text",
|
|
1359
1357
|
int: "int"
|
|
1360
1358
|
});
|
|
1361
1359
|
userSchemaExpression = common_exports.expressionFromString(`mysqlTable('user', {
|
|
@@ -1367,7 +1365,6 @@ var drizzle_default = defineAddon({
|
|
|
1367
1365
|
imports_exports.addNamed(ast, "drizzle-orm/pg-core", {
|
|
1368
1366
|
pgTable: "pgTable",
|
|
1369
1367
|
serial: "serial",
|
|
1370
|
-
text: "text",
|
|
1371
1368
|
integer: "integer"
|
|
1372
1369
|
});
|
|
1373
1370
|
userSchemaExpression = common_exports.expressionFromString(`pgTable('user', {
|
|
@@ -6984,7 +6981,8 @@ else if (official[addonId][id] !== undefined) throw new Error(`Incompatible '${a
|
|
|
6984
6981
|
}
|
|
6985
6982
|
}
|
|
6986
6983
|
let workspace = await createWorkspace({ cwd: options$6.cwd });
|
|
6987
|
-
const
|
|
6984
|
+
const setups = selectedAddons.length ? selectedAddons.map(({ addon }) => addon) : officialAddons;
|
|
6985
|
+
const addonSetupResults = setupAddons(setups, workspace);
|
|
6988
6986
|
if (selectedAddons.length === 0) {
|
|
6989
6987
|
const addonOptions$1 = officialAddons.filter(({ id }) => addonSetupResults[id].unsupported.length === 0).map(({ id, homepage: homepage$1, shortDescription }) => ({
|
|
6990
6988
|
label: id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sv",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A CLI for creating and updating SvelteKit projects",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"tinyexec": "^0.3.2",
|
|
39
39
|
"valibot": "^0.41.0",
|
|
40
40
|
"@sveltejs/addons": "0.0.0",
|
|
41
|
+
"@sveltejs/cli-core": "0.0.0",
|
|
41
42
|
"@sveltejs/clack-prompts": "0.9.1",
|
|
42
|
-
"@sveltejs/create": "0.0.0"
|
|
43
|
-
"@sveltejs/cli-core": "0.0.0"
|
|
43
|
+
"@sveltejs/create": "0.0.0"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"create",
|