@stacksjs/actions 0.45.0 → 0.45.2

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.
@@ -3,4 +3,4 @@ import { runCommands } from "@stacksjs/cli";
3
3
  await runCommands([
4
4
  "pnpm --filter './core/**' --filter='!./core/config' --filter='!./core/x-ray' build",
5
5
  "pnpm --filter '../core/config' build"
6
- ], { debug: true, cwd: frameworkPath() });
6
+ ], { debug: true, cwd: frameworkPath(), shell: true });
package/dist/bump.mjs CHANGED
@@ -1,8 +1,6 @@
1
1
  import { runCommand } from "@stacksjs/cli";
2
2
  import { frameworkPath } from "@stacksjs/path";
3
- const result = await runCommand(
3
+ await runCommand(
4
4
  "npx bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute 'pnpm run changelog' --all",
5
5
  { debug: true, cwd: frameworkPath(), shell: true }
6
6
  );
7
- if (result.isErr())
8
- console.error(result.error);
@@ -4,7 +4,7 @@ import { actionsPath, functionsPath } from "@stacksjs/path";
4
4
  import { err } from "@stacksjs/error-handling";
5
5
  export async function runAction(action, options) {
6
6
  if (!hasAction(action))
7
- return err(`The specified action "${action}" does not exist`);
7
+ return err(`The specified action "${action}" does not exist.`);
8
8
  const cmd = `npx esno ${actionsPath(`${action}.ts`)}`;
9
9
  return options?.shouldShowSpinner ? await runCommands([cmd], options) : await runCommand(cmd, options);
10
10
  }
package/dist/lint-fix.mjs CHANGED
@@ -1,7 +1,4 @@
1
1
  import { runAction } from "@stacksjs/actions";
2
- import { log } from "@stacksjs/cli";
3
2
  import { projectPath } from "@stacksjs/path";
4
3
  import { Action } from "@stacksjs/types";
5
- log.info("Linting your project.");
6
- await runAction(Action.FixLintIssues, { debug: true, cwd: projectPath(), shouldShowSpinner: true });
7
- log.success("Linted your project.");
4
+ await runAction(Action.FixLintIssues, { cwd: projectPath(), shouldShowSpinner: true, spinnerText: "Linting..." });
package/dist/lint.mjs CHANGED
@@ -1,9 +1,4 @@
1
- import { intro, outro, runCommand } from "@stacksjs/cli";
2
- import { ExitCode, NpmScript } from "@stacksjs/types";
3
- const perf = intro("buddy lint");
4
- const result = await runCommand(NpmScript.Lint, { cwd: frameworkPath(), debug: true });
5
- if (result.isErr()) {
6
- outro("While running `buddy lint`, there was an issue", { startTime: perf, useSeconds: true, isError: true });
7
- process.exit(ExitCode.FatalError);
8
- }
9
- outro("Linted", { startTime: perf, useSeconds: true });
1
+ import { runCommand } from "@stacksjs/cli";
2
+ import { projectPath } from "@stacksjs/path";
3
+ import { NpmScript } from "@stacksjs/types";
4
+ await runCommand(NpmScript.Lint, { cwd: projectPath(), debug: true });
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.45.0",
5
- "packageManager": "pnpm@7.18.2",
4
+ "version": "0.45.2",
5
+ "packageManager": "pnpm@7.19.0",
6
6
  "description": "The Stacks actions.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,27 +37,27 @@
37
37
  ],
38
38
  "engines": {
39
39
  "node": ">=v18.12.1",
40
- "pnpm": ">=7.18.2"
40
+ "pnpm": ">=7.19.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "markdown-it": "^13.0.1",
44
44
  "vue-component-meta": "^1.0.16",
45
- "@stacksjs/cli": "0.45.0",
46
- "@stacksjs/config": "0.45.0",
47
- "@stacksjs/logging": "0.45.0",
48
- "@stacksjs/path": "0.45.0",
49
- "@stacksjs/storage": "0.45.0",
50
- "@stacksjs/types": "0.45.0",
51
- "@stacksjs/utils": "0.45.0"
45
+ "@stacksjs/cli": "0.45.2",
46
+ "@stacksjs/config": "0.45.2",
47
+ "@stacksjs/logging": "0.45.2",
48
+ "@stacksjs/path": "0.45.2",
49
+ "@stacksjs/storage": "0.45.2",
50
+ "@stacksjs/types": "0.45.2",
51
+ "@stacksjs/utils": "0.45.2"
52
52
  },
53
53
  "dependencies": {
54
54
  "esno": "^0.16.3",
55
- "@stacksjs/strings": "0.45.0"
55
+ "@stacksjs/strings": "0.45.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "mkdist": "^1.0.0",
59
59
  "typescript": "^4.9.4",
60
- "@stacksjs/testing": "0.45.0"
60
+ "@stacksjs/testing": "0.45.2"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "mkdist -d",