@stacksjs/utils 0.47.4 → 0.49.0
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/helpers.d.ts +2 -2
- package/dist/helpers.mjs +2 -1
- package/package.json +17 -17
package/dist/helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CliOptions, Manifest, NpmScript } from '@stacksjs/types';
|
|
2
2
|
export declare function isProjectCreated(): Promise<boolean>;
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function frameworkVersion(): Promise<string>;
|
|
4
4
|
export declare function isAppKeySet(): Promise<boolean>;
|
|
5
5
|
/**
|
|
6
6
|
* Determines the utilized reset preset.
|
package/dist/helpers.mjs
CHANGED
|
@@ -9,7 +9,7 @@ export async function isProjectCreated() {
|
|
|
9
9
|
await spawn("cp .env.example .env", { stdio: "inherit", cwd: projectPath() });
|
|
10
10
|
return await isAppKeySet();
|
|
11
11
|
}
|
|
12
|
-
export async function
|
|
12
|
+
export async function frameworkVersion() {
|
|
13
13
|
const packageJson = await storage.fs.readJson(frameworkPath("package.json"));
|
|
14
14
|
return packageJson.version;
|
|
15
15
|
}
|
|
@@ -54,6 +54,7 @@ export async function setEnvValue(key, value) {
|
|
|
54
54
|
await storage.writeTextFile({
|
|
55
55
|
path: projectPath(".env"),
|
|
56
56
|
data: file.data.replace(/APP_KEY=/g, `APP_KEY=${value}`)
|
|
57
|
+
// todo: do not hardcode the APP_KEY here and instead use the key parameter
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
export async function runNpmScript(script, options) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks helper functions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"README.md"
|
|
38
38
|
],
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=v18.
|
|
41
|
-
"pnpm": ">=7.
|
|
40
|
+
"node": ">=v18.13.0",
|
|
41
|
+
"pnpm": ">=7.25.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@vueuse/core": "^9.
|
|
44
|
+
"@vueuse/core": "^9.10.0",
|
|
45
45
|
"@vueuse/head": "^1.0.22",
|
|
46
|
-
"@vueuse/math": "^9.
|
|
47
|
-
"@vueuse/shared": "^9.
|
|
46
|
+
"@vueuse/math": "^9.10.0",
|
|
47
|
+
"@vueuse/shared": "^9.10.0",
|
|
48
48
|
"defu": "^6.1.1",
|
|
49
49
|
"detect-indent": "^7.0.1",
|
|
50
50
|
"detect-newline": "^4.0.0",
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
"fast-glob": "^3.2.12",
|
|
54
54
|
"kolorist": "1.6.0",
|
|
55
55
|
"p-limit": "^4.0.0",
|
|
56
|
-
"rimraf": "^
|
|
56
|
+
"rimraf": "^4.0.5",
|
|
57
57
|
"throttle-debounce": "^5.0.0",
|
|
58
|
-
"@stacksjs/arrays": "0.
|
|
59
|
-
"@stacksjs/cli": "0.
|
|
60
|
-
"@stacksjs/config": "0.
|
|
61
|
-
"@stacksjs/lint": "0.
|
|
62
|
-
"@stacksjs/path": "0.
|
|
63
|
-
"@stacksjs/storage": "0.
|
|
64
|
-
"@stacksjs/types": "0.
|
|
58
|
+
"@stacksjs/arrays": "0.49.0",
|
|
59
|
+
"@stacksjs/cli": "0.49.0",
|
|
60
|
+
"@stacksjs/config": "0.49.0",
|
|
61
|
+
"@stacksjs/lint": "0.49.0",
|
|
62
|
+
"@stacksjs/path": "0.49.0",
|
|
63
|
+
"@stacksjs/storage": "0.49.0",
|
|
64
|
+
"@stacksjs/types": "0.49.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/throttle-debounce": "^5.0.0",
|
|
68
|
-
"mkdist": "^1.
|
|
68
|
+
"mkdist": "^1.1.0",
|
|
69
69
|
"typescript": "^4.9.4",
|
|
70
|
-
"@stacksjs/testing": "0.
|
|
70
|
+
"@stacksjs/testing": "0.49.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "mkdist -d",
|