@stacksjs/actions 0.46.2 → 0.46.3

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/bump.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { runCommand } from "@stacksjs/cli";
2
2
  import { frameworkPath } from "@stacksjs/path";
3
3
  await runCommand(
4
- "npx bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute 'pnpm buddy changelog' --all",
4
+ 'npx bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute "pnpm buddy changelog" --all',
5
5
  { debug: true, cwd: frameworkPath(), shell: true }
6
6
  );
package/dist/lint-fix.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { runAction } from "@stacksjs/actions";
1
+ import { runCommand } from "@stacksjs/cli";
2
2
  import { projectPath } from "@stacksjs/path";
3
- import { Action } from "@stacksjs/types";
4
- await runAction(Action.FixLintIssues, { cwd: projectPath(), shouldShowSpinner: true, spinnerText: "Linting..." });
3
+ import { NpmScript } from "@stacksjs/types";
4
+ await runCommand(NpmScript.LintFix, { cwd: projectPath(), shouldShowSpinner: true, spinnerText: "Linting..." });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { NpmScript } from "@stacksjs/types";
2
+ import { runCommand } from "@stacksjs/cli";
3
+ import { frameworkPath } from "@stacksjs/path";
4
+ await runCommand(NpmScript.TestCoverage, { debug: true, cwd: frameworkPath() });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { NpmScript } from "@stacksjs/types";
2
+ import { runCommand } from "@stacksjs/cli";
3
+ import { frameworkPath } from "@stacksjs/path";
4
+ await runCommand(NpmScript.TestUi, { debug: true, cwd: frameworkPath() });
package/dist/test.d.ts CHANGED
@@ -1,11 +1 @@
1
- import type { TestOptions } from '@stacksjs/types';
2
- export declare function invoke(options: TestOptions): Promise<void>;
3
- export declare function testUi(options: TestOptions): Promise<void>;
4
- /**
5
- * An alias of the invoke method.
6
- * @param options
7
- * @returns
8
- */
9
- export declare function test(options: TestOptions): Promise<void>;
10
- export declare function typecheck(options: TestOptions): Promise<void>;
11
- export declare function testCoverageReport(options: TestOptions): Promise<void>;
1
+ export {};
package/dist/test.mjs CHANGED
@@ -1,43 +1,4 @@
1
1
  import { NpmScript } from "@stacksjs/types";
2
- import { intro, outro, runCommand } from "@stacksjs/cli";
3
- import { projectPath } from "@stacksjs/path";
4
- export async function invoke(options) {
5
- const perf = intro("buddy test");
6
- const result = await runCommand(NpmScript.Test, { ...options, debug: true, cwd: projectPath() });
7
- if (result.isErr()) {
8
- outro("While running `buddy test`, there was an issue", { startTime: perf, useSeconds: true, isError: true }, result.error);
9
- process.exit();
10
- }
11
- outro("Finished running tests", { startTime: perf, useSeconds: true });
12
- }
13
- export async function testUi(options) {
14
- const perf = intro("buddy test:ui");
15
- const result = await runCommand(NpmScript.TestUi, { ...options, debug: true });
16
- if (result.isErr()) {
17
- outro("While running `buddy test:ui`, there was an issue", { startTime: perf, useSeconds: true, isError: true }, result.error);
18
- process.exit();
19
- }
20
- }
21
- export async function test(options) {
22
- return invoke(options);
23
- }
24
- export async function typecheck(options) {
25
- const perf = intro("buddy test:types");
26
- const result = await runCommand(NpmScript.TestTypes, options);
27
- if (result.isErr()) {
28
- outro("While running `buddy test:types`, there was an issue", { startTime: perf, useSeconds: true, isError: true }, result.error);
29
- process.exit();
30
- }
31
- outro("Finished typecheck", { startTime: perf, useSeconds: true });
32
- process.exit();
33
- }
34
- export async function testCoverageReport(options) {
35
- const perf = intro("buddy test:coverage");
36
- const result = await runCommand(NpmScript.TestCoverage, options);
37
- if (result.isErr()) {
38
- outro("While running `buddy test:coverage`, there was an issue", { startTime: perf, useSeconds: true, isError: true }, result.error);
39
- process.exit();
40
- }
41
- outro("Generated the test coverage report", { startTime: perf, useSeconds: true });
42
- process.exit();
43
- }
2
+ import { runCommand } from "@stacksjs/cli";
3
+ import { frameworkPath } from "@stacksjs/path";
4
+ await runCommand(NpmScript.Test, { debug: true, cwd: frameworkPath() });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { NpmScript } from "@stacksjs/types";
2
+ import { runCommands } from "@stacksjs/cli";
3
+ import { projectPath } from "@stacksjs/path";
4
+ await runCommands([NpmScript.TestTypes], { cwd: projectPath(), spinnerText: "Type checking...", debug: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.46.2",
4
+ "version": "0.46.3",
5
5
  "packageManager": "pnpm@7.19.0",
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.16",
45
- "@stacksjs/cli": "0.46.2",
46
- "@stacksjs/config": "0.46.2",
47
- "@stacksjs/logging": "0.46.2",
48
- "@stacksjs/path": "0.46.2",
49
- "@stacksjs/storage": "0.46.2",
50
- "@stacksjs/types": "0.46.2",
51
- "@stacksjs/utils": "0.46.2"
45
+ "@stacksjs/cli": "0.46.3",
46
+ "@stacksjs/config": "0.46.3",
47
+ "@stacksjs/logging": "0.46.3",
48
+ "@stacksjs/path": "0.46.3",
49
+ "@stacksjs/storage": "0.46.3",
50
+ "@stacksjs/types": "0.46.3",
51
+ "@stacksjs/utils": "0.46.3"
52
52
  },
53
53
  "dependencies": {
54
54
  "esno": "^0.16.3",
55
- "@stacksjs/strings": "0.46.2"
55
+ "@stacksjs/strings": "0.46.3"
56
56
  },
57
57
  "devDependencies": {
58
58
  "mkdist": "^1.0.0",
59
59
  "typescript": "^4.9.4",
60
- "@stacksjs/testing": "0.46.2"
60
+ "@stacksjs/testing": "0.46.3"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "mkdist -d",