@stacksjs/actions 0.44.10 → 0.44.12
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/build-component-libs.d.ts +1 -0
- package/dist/build-component-libs.mjs +10 -0
- package/dist/build-stacks.d.ts +1 -0
- package/dist/build-stacks.mjs +8 -0
- package/dist/fresh.d.ts +1 -8
- package/dist/fresh.mjs +3 -17
- package/dist/helpers/utils.mjs +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { log } from "@stacksjs/logging";
|
|
2
|
+
import { frameworkPath } from "@stacksjs/path";
|
|
3
|
+
import { runCommand } from "@stacksjs/cli";
|
|
4
|
+
log.info("Building Component Libraries...");
|
|
5
|
+
const result = await runCommand("npx mkdist -d", { debug: true, cwd: frameworkPath() });
|
|
6
|
+
if (result.isErr()) {
|
|
7
|
+
log.error("There was an error running `npx mkdist -d`.", result.error);
|
|
8
|
+
process.exit();
|
|
9
|
+
}
|
|
10
|
+
log.success("Building Stacks was successful.");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/fresh.d.ts
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function invoke(options?: FreshOptions): Promise<void>;
|
|
3
|
-
/**
|
|
4
|
-
* An alias of the invoke method.
|
|
5
|
-
* @param options
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare function fresh(options: FreshOptions): Promise<void>;
|
|
1
|
+
export {};
|
package/dist/fresh.mjs
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const perf = intro("buddy fresh");
|
|
5
|
-
const results = await runCommands(["pnpm run clean", "pnpm install"], options);
|
|
6
|
-
for (const result of results) {
|
|
7
|
-
if (result.isErr()) {
|
|
8
|
-
outro("While running the fresh command, there was an issue", { startTime: perf, useSeconds: true, isError: true }, result.error);
|
|
9
|
-
process.exit(ExitCode.FatalError);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
outro("Freshly reinstalled your dependencies.", { startTime: perf, useSeconds: true });
|
|
13
|
-
process.exit(ExitCode.Success);
|
|
14
|
-
}
|
|
15
|
-
export async function fresh(options) {
|
|
16
|
-
return invoke(options);
|
|
17
|
-
}
|
|
1
|
+
import { runCommands } from "@stacksjs/cli";
|
|
2
|
+
import { frameworkPath } from "@stacksjs/path";
|
|
3
|
+
await runCommands(["pnpm run clean", "pnpm install"], { cwd: frameworkPath(), debug: true });
|
package/dist/helpers/utils.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { err } from "@stacksjs/error-handling";
|
|
|
5
5
|
export async function runAction(action, options) {
|
|
6
6
|
if (!hasAction(action))
|
|
7
7
|
return err(`The specified action "${action}" does not exist`);
|
|
8
|
-
const cmd = `esno ${actionsPath(`${action}.ts`)}`;
|
|
8
|
+
const cmd = `npx esno ${actionsPath(`${action}.ts`)}`;
|
|
9
9
|
return await runCommand(cmd, options);
|
|
10
10
|
}
|
|
11
11
|
export function hasAction(action) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.44.
|
|
4
|
+
"version": "0.44.12",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -42,22 +42,22 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"markdown-it": "^13.0.1",
|
|
44
44
|
"vue-component-meta": "^1.0.13",
|
|
45
|
-
"@stacksjs/
|
|
46
|
-
"@stacksjs/
|
|
47
|
-
"@stacksjs/logging": "0.44.
|
|
48
|
-
"@stacksjs/path": "0.44.
|
|
49
|
-
"@stacksjs/storage": "0.44.
|
|
50
|
-
"@stacksjs/types": "0.44.
|
|
51
|
-
"@stacksjs/utils": "0.44.
|
|
45
|
+
"@stacksjs/cli": "0.44.12",
|
|
46
|
+
"@stacksjs/config": "0.44.12",
|
|
47
|
+
"@stacksjs/logging": "0.44.12",
|
|
48
|
+
"@stacksjs/path": "0.44.12",
|
|
49
|
+
"@stacksjs/storage": "0.44.12",
|
|
50
|
+
"@stacksjs/types": "0.44.12",
|
|
51
|
+
"@stacksjs/utils": "0.44.12"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"esno": "^0.16.3",
|
|
55
|
-
"@stacksjs/strings": "0.44.
|
|
55
|
+
"@stacksjs/strings": "0.44.12"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"mkdist": "^1.0.0",
|
|
59
59
|
"typescript": "^4.9.4",
|
|
60
|
-
"@stacksjs/testing": "0.44.
|
|
60
|
+
"@stacksjs/testing": "0.44.12"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "mkdist -d",
|