@stacksjs/actions 0.72.39 → 0.72.41
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/generate/pantry-file.js +1 -1
- package/dist/migrate/database.js +1 -1
- package/package.json +20 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
import{log,runCommand}from"@stacksjs/cli";import{config}from"@stacksjs/config";const pantryFile=Bun.file(new URL("../../../../../pantry.yaml",import.meta.url));if(!await pantryFile.exists())throw Error("pantry.yaml file not found");const data=Bun.YAML.parse(await pantryFile.text());if(data.dependencies["aws.amazon.com/cdk"]===void 0){log.info("aws.amazon.com/cdk dependency not found in pantry.yaml.");if((await runCommand("which cdk")).isErr)throw Error("aws.amazon.com/cdk dependency not found in pantry.yaml. To confirm, run `which cdk`")}if(data.dependencies["aws.amazon.com/cli"]===void 0){log.info("aws.amazon.com/cli dependency not found in pantry.yaml.");if((await runCommand("which aws")).isErr)throw Error("aws.amazon.com/cli dependency not found in pantry.yaml. To confirm, run `which aws`")}if(data.dependencies["bun.sh"]===void 0){log.info("bun.sh dependency not found in pantry.yaml.");if((await runCommand("which bun")).isErr)throw Error("bun.sh dependency not found in pantry.yaml. To confirm, run `which bun`")}if(data.dependencies["info-zip.org/zip"]===void 0){log.info("info-zip.org/zip dependency not found in pantry.yaml.");if((await runCommand("which zip")).isErr)throw Error("info-zip.org/zip dependency not found in pantry.yaml. To confirm, run `which zip`")}if(data.dependencies["info-zip.org/unzip"]===void 0){log.info("info-zip.org/unzip dependency not found in pantry.yaml.");if((await runCommand("which unzip")).isErr)throw Error("info-zip.org/unzip dependency not found in pantry.yaml. To confirm, run `which unzip`")}if(data.dependencies["
|
|
1
|
+
import{log,runCommand}from"@stacksjs/cli";import{config}from"@stacksjs/config";const pantryFile=Bun.file(new URL("../../../../../pantry.yaml",import.meta.url));if(!await pantryFile.exists())throw Error("pantry.yaml file not found");const data=Bun.YAML.parse(await pantryFile.text());if(data.dependencies["aws.amazon.com/cdk"]===void 0){log.info("aws.amazon.com/cdk dependency not found in pantry.yaml.");if((await runCommand("which cdk")).isErr)throw Error("aws.amazon.com/cdk dependency not found in pantry.yaml. To confirm, run `which cdk`")}if(data.dependencies["aws.amazon.com/cli"]===void 0){log.info("aws.amazon.com/cli dependency not found in pantry.yaml.");if((await runCommand("which aws")).isErr)throw Error("aws.amazon.com/cli dependency not found in pantry.yaml. To confirm, run `which aws`")}if(data.dependencies["bun.sh"]===void 0){log.info("bun.sh dependency not found in pantry.yaml.");if((await runCommand("which bun")).isErr)throw Error("bun.sh dependency not found in pantry.yaml. To confirm, run `which bun`")}if(data.dependencies["info-zip.org/zip"]===void 0){log.info("info-zip.org/zip dependency not found in pantry.yaml.");if((await runCommand("which zip")).isErr)throw Error("info-zip.org/zip dependency not found in pantry.yaml. To confirm, run `which zip`")}if(data.dependencies["info-zip.org/unzip"]===void 0){log.info("info-zip.org/unzip dependency not found in pantry.yaml.");if((await runCommand("which unzip")).isErr)throw Error("info-zip.org/unzip dependency not found in pantry.yaml. To confirm, run `which unzip`")}if(data.dependencies["github.com/mail-os/mail"]===void 0){log.info("github.com/mail-os/mail dependency not found in pantry.yaml.");if((await runCommand("which mail")).isErr)throw Error("github.com/mail-os/mail dependency not found in pantry.yaml. To confirm, run `which mail`")}if(data.dependencies["redis.io"]===void 0){log.info("redis.io dependency not found in pantry.yaml.");if((await runCommand("which redis")).isErr)throw Error("redis.io dependency not found in pantry.yaml. To confirm, run `which redis`")}if(config.database.default==="sqlite"&&data.dependencies["sqlite.org"]===void 0){log.info("sqlite.org dependency not found in pantry.yaml.");if((await runCommand("which sqlite")).isErr)throw Error("sqlite.org dependency not found in pantry.yaml. To confirm, run `which sqlite`")}
|
package/dist/migrate/database.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{generateMigrations,runDatabaseMigration}from"@stacksjs/database";import{log}from"@stacksjs/logging";const
|
|
1
|
+
import process from"node:process";import{generateMigrations,runDatabaseMigration}from"@stacksjs/database";import{log}from"@stacksjs/logging";const generated=await generateMigrations();if(generated?.isErr){console.error("Generating migrations failed. The model diff could not be turned into SQL.");console.error(String(generated.error?.message??generated.error));log.error("[stacks] generateMigrations failed",generated.error);process.exit(1)}const migrated=await runDatabaseMigration();if(migrated.isErr){console.error("Running migrations failed. The files were written; applying them to the database did not succeed.");console.error(String(migrated.error?.message??migrated.error));log.error("[stacks] runDatabaseMigration failed",migrated.error);process.exit(1)}process.exit(0);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.72.
|
|
5
|
+
"version": "0.72.41",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -59,35 +59,35 @@
|
|
|
59
59
|
"prepublishOnly": "bun run build"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@stacksjs/config": "0.72.
|
|
62
|
+
"@stacksjs/config": "0.72.41",
|
|
63
63
|
"@stacksjs/bumpx": "^0.2.6",
|
|
64
64
|
"@stacksjs/bunpress": "^0.2.8",
|
|
65
65
|
"@stacksjs/logsmith": "^0.2.3",
|
|
66
|
-
"@stacksjs/registry": "0.72.
|
|
66
|
+
"@stacksjs/registry": "0.72.41",
|
|
67
67
|
"@stacksjs/stx": "^0.2.197",
|
|
68
68
|
"@stacksjs/ts-cloud": "^0.9.4",
|
|
69
69
|
"@stacksjs/ts-md": "^0.1.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@stacksjs/api": "0.72.
|
|
73
|
-
"@stacksjs/cli": "0.72.
|
|
74
|
-
"@stacksjs/database": "0.72.
|
|
72
|
+
"@stacksjs/api": "0.72.41",
|
|
73
|
+
"@stacksjs/cli": "0.72.41",
|
|
74
|
+
"@stacksjs/database": "0.72.41",
|
|
75
75
|
"@stacksjs/tlsx": "^0.13.2",
|
|
76
76
|
"better-dx": "^0.2.24",
|
|
77
|
-
"@stacksjs/dns": "0.72.
|
|
78
|
-
"@stacksjs/enums": "0.72.
|
|
79
|
-
"@stacksjs/env": "0.72.
|
|
80
|
-
"@stacksjs/error-handling": "0.72.
|
|
81
|
-
"@stacksjs/image": "0.72.
|
|
82
|
-
"@stacksjs/logging": "0.72.
|
|
83
|
-
"@stacksjs/path": "0.72.
|
|
84
|
-
"@stacksjs/security": "0.72.
|
|
85
|
-
"@stacksjs/cms": "0.72.
|
|
86
|
-
"@stacksjs/sites": "0.72.
|
|
87
|
-
"@stacksjs/storage": "0.72.
|
|
88
|
-
"@stacksjs/strings": "0.72.
|
|
89
|
-
"@stacksjs/utils": "0.72.
|
|
90
|
-
"@stacksjs/validation": "0.72.
|
|
77
|
+
"@stacksjs/dns": "0.72.41",
|
|
78
|
+
"@stacksjs/enums": "0.72.41",
|
|
79
|
+
"@stacksjs/env": "0.72.41",
|
|
80
|
+
"@stacksjs/error-handling": "0.72.41",
|
|
81
|
+
"@stacksjs/image": "0.72.41",
|
|
82
|
+
"@stacksjs/logging": "0.72.41",
|
|
83
|
+
"@stacksjs/path": "0.72.41",
|
|
84
|
+
"@stacksjs/security": "0.72.41",
|
|
85
|
+
"@stacksjs/cms": "0.72.41",
|
|
86
|
+
"@stacksjs/sites": "0.72.41",
|
|
87
|
+
"@stacksjs/storage": "0.72.41",
|
|
88
|
+
"@stacksjs/strings": "0.72.41",
|
|
89
|
+
"@stacksjs/utils": "0.72.41",
|
|
90
|
+
"@stacksjs/validation": "0.72.41"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"pickier": "^0.1.58",
|