@dword-design/base 14.0.2 → 14.0.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/cli.js CHANGED
@@ -39,6 +39,12 @@ try {
39
39
  prepare: {
40
40
  handler: () => base.prepare()
41
41
  },
42
+ typecheck: {
43
+ handler: () => base.typecheck()
44
+ },
45
+ verify: {
46
+ handler: () => base.verify()
47
+ },
42
48
  ...(base.config.testInContainer && {
43
49
  "test:raw": {
44
50
  arguments: "[patterns...]",
@@ -0,0 +1 @@
1
+ export default function (options: any): Promise<void>;
@@ -0,0 +1,11 @@
1
+ export default async function (options) {
2
+ options = {
3
+ log: process.env.NODE_ENV !== "test",
4
+ patterns: [],
5
+ stderr: "inherit",
6
+ ...options
7
+ };
8
+ await this.lint(options);
9
+ await this.typecheck(options);
10
+ await this.test(options);
11
+ }
@@ -20,7 +20,7 @@ export default function () {
20
20
  ...Object.fromEntries(envVariableNames.map(name => [name, `\${{ secrets.${name} }}`])),
21
21
  GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
22
22
  },
23
- run: "pnpm test"
23
+ run: "pnpm verify"
24
24
  }, {
25
25
  if: "always()",
26
26
  uses: gitHubAction`actions/upload-artifact@v4`,
@@ -8,6 +8,8 @@ export default function () {
8
8
  depcheck: true,
9
9
  lint: true,
10
10
  prepare: true,
11
+ typecheck: true,
12
+ verify: true,
11
13
  ...(this.config.testInContainer && {
12
14
  "test:raw": true
13
15
  }),
package/dist/index.d.ts CHANGED
@@ -60,6 +60,7 @@ declare class Base {
60
60
  commit(...args: any[]): ResultPromise;
61
61
  lint(...args: any[]): ResultPromise;
62
62
  typecheck(...args: any[]): ResultPromise;
63
+ verify(...args: any[]): ResultPromise;
63
64
  prepare(...args: any[]): void;
64
65
  test(...args: any[]): ResultPromise;
65
66
  testRaw(...args: any[]): ResultPromise;
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ import test from "./commands/test/index.js";
19
19
  import testDocker from "./commands/test-docker/index.js";
20
20
  import testRaw from "./commands/test-raw/index.js";
21
21
  import typecheck from "./commands/typecheck/index.js";
22
+ import verify from "./commands/verify/index.js";
22
23
  import getDepcheckSpecialBase from "./get-depcheck-special-base/index.js";
23
24
  import getGeneratedFiles from "./get-generated-files/index.js";
24
25
  import getEditorIgnoreConfig from "./get-generated-files/get-editor-ignore/index.js";
@@ -59,6 +60,9 @@ class Base {
59
60
  typecheck(...args) {
60
61
  return typecheck.call(this, ...args);
61
62
  }
63
+ verify(...args) {
64
+ return verify.call(this, ...args);
65
+ }
62
66
  prepare(...args) {
63
67
  return prepare.call(this, ...args);
64
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "14.0.2",
3
+ "version": "14.0.3",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",
@@ -28,7 +28,9 @@
28
28
  "lint": "tsx src/cli.ts lint",
29
29
  "prepare": "tsx src/cli.ts prepare",
30
30
  "prepublishOnly": "tsx src/cli.ts prepublishOnly",
31
- "test": "tsx src/cli.ts test"
31
+ "test": "tsx src/cli.ts test",
32
+ "typecheck": "tsx src/cli.ts typecheck",
33
+ "verify": "tsx src/cli.ts verify"
32
34
  },
33
35
  "dependencies": {
34
36
  "@commitlint/cli": "^18.6.1",