@stacksjs/buddy 0.70.189 → 0.70.191
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/commands/seed.js +2 -1
- package/package.json +7 -7
package/dist/commands/seed.js
CHANGED
|
@@ -7,13 +7,14 @@ export function seed(buddy) {
|
|
|
7
7
|
project: "Target a specific project",
|
|
8
8
|
verbose: "Enable verbose output"
|
|
9
9
|
};
|
|
10
|
-
buddy.command("seed", descriptions.seed).alias("db:seed").option("-p, --project [project]", descriptions.project, { default: !1 }).option("--only [models]", "Comma-separated list of models to seed", { default: "" }).option("--except [models]", "Comma-separated list of models to skip", { default: "" }).option("--include-defaults", "Also seed the framework's built-in models", { default: !1 }).option("--allow-protected", "Seed auth/oauth models even on a non-fresh DB (will invalidate live tokens)", { default: !1 }).option("--fresh", "Truncate tables before seeding", { default: !1 }).option("--verbose", descriptions.verbose, { default: !1 }).action(async (options) => {
|
|
10
|
+
buddy.command("seed", descriptions.seed).alias("db:seed").option("-p, --project [project]", descriptions.project, { default: !1 }).option("--only [models]", "Comma-separated list of models to seed", { default: "" }).option("--except [models]", "Comma-separated list of models to skip", { default: "" }).option("--include-defaults", "Also seed the framework's built-in models", { default: !1 }).option("--allow-protected", "Seed auth/oauth models even on a non-fresh DB (will invalidate live tokens)", { default: !1 }).option("--fresh", "Truncate tables before seeding", { default: !1 }).option("--append", "Add rows to tables that already have some, instead of skipping them", { default: !1 }).option("--verbose", descriptions.verbose, { default: !1 }).action(async (options) => {
|
|
11
11
|
log.debug("Running `buddy seed` ...", options);
|
|
12
12
|
const perf = await intro("buddy seed"), { injectGlobalAutoImports } = await import("@stacksjs/server");
|
|
13
13
|
await injectGlobalAutoImports();
|
|
14
14
|
const { seed: seedDatabase } = await import("@stacksjs/database"), list = (value) => value ? value.split(",").map((entry) => entry.trim()).filter(Boolean) : void 0, summary = await seedDatabase({
|
|
15
15
|
verbose: options.verbose,
|
|
16
16
|
fresh: options.fresh,
|
|
17
|
+
append: options.append,
|
|
17
18
|
only: list(options.only),
|
|
18
19
|
except: list(options.except),
|
|
19
20
|
includeDefaults: options.includeDefaults,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.191",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"scripts": {
|
|
75
75
|
"buddy": "bunx --bun ./src/cli.ts",
|
|
76
76
|
"build": "bun build.ts",
|
|
77
|
-
"compile": "bun build ./src/cli.ts --compile --minify --sourcemap --
|
|
77
|
+
"compile": "bun build ./src/cli.ts --compile --minify --sourcemap --outfile dist/buddy",
|
|
78
78
|
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
|
|
79
|
-
"compile:linux-x64": "bun build ./src/cli.ts --compile --minify --target=bun-linux-x64 --
|
|
80
|
-
"compile:linux-arm64": "bun build ./src/cli.ts --compile --minify --target=bun-linux-arm64 --
|
|
81
|
-
"compile:windows-x64": "bun build ./src/cli.ts --compile --minify --target=bun-windows-x64 --
|
|
82
|
-
"compile:darwin-x64": "bun build ./src/cli.ts --compile --minify --target=bun-darwin-x64 --
|
|
83
|
-
"compile:darwin-arm64": "bun build ./src/cli.ts --compile --minify --target=bun-darwin-arm64 --
|
|
79
|
+
"compile:linux-x64": "bun build ./src/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/buddy-linux-x64",
|
|
80
|
+
"compile:linux-arm64": "bun build ./src/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/buddy-linux-arm64",
|
|
81
|
+
"compile:windows-x64": "bun build ./src/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/buddy-windows-x64.exe",
|
|
82
|
+
"compile:darwin-x64": "bun build ./src/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/buddy-darwin-x64",
|
|
83
|
+
"compile:darwin-arm64": "bun build ./src/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/buddy-darwin-arm64",
|
|
84
84
|
"typecheck": "bun tsc --noEmit",
|
|
85
85
|
"zip:all": "bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:windows-x64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64",
|
|
86
86
|
"zip:linux-x64": "zip -j bin/buddy-linux-x64.zip bin/buddy-linux-x64",
|