@dword-design/base 14.0.4 → 14.0.6

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,5 @@ import type { StdoutStderrOptionCommon } from 'execa';
3
3
  export type CommandOptionsInput = {
4
4
  log?: boolean;
5
5
  stderr?: StdoutStderrOptionCommon<false>;
6
+ env?: Record<string, string>;
6
7
  };
@@ -0,0 +1,67 @@
1
+ declare const _default: {
2
+ properties: {
3
+ baseConfig: {
4
+ properties: {
5
+ depcheckConfig: {
6
+ type: string;
7
+ };
8
+ name: {
9
+ type: string;
10
+ };
11
+ };
12
+ type: string[];
13
+ };
14
+ bin: {
15
+ additionalProperties: {
16
+ pattern: string;
17
+ type: string;
18
+ };
19
+ pattern: string;
20
+ type: string[];
21
+ };
22
+ dependencies: {
23
+ additionalProperties: {
24
+ type: string;
25
+ };
26
+ type: string;
27
+ };
28
+ description: {
29
+ type: string;
30
+ };
31
+ devDependencies: {
32
+ additionalProperties: {
33
+ type: string;
34
+ };
35
+ type: string;
36
+ };
37
+ keywords: {
38
+ items: {
39
+ type: string;
40
+ };
41
+ type: string;
42
+ };
43
+ name: {
44
+ pattern: string;
45
+ type: string;
46
+ };
47
+ packageManager: {
48
+ type: string;
49
+ };
50
+ pnpm: {
51
+ properties: {
52
+ overrides: {
53
+ additionalProperties: {
54
+ type: string;
55
+ };
56
+ type: string;
57
+ };
58
+ };
59
+ type: string;
60
+ };
61
+ version: {
62
+ type: string;
63
+ };
64
+ };
65
+ type: string;
66
+ };
67
+ export default _default;
@@ -0,0 +1,68 @@
1
+ import packageNameRegex from "package-name-regex";
2
+ const distPattern = /^\.\/dist\//;
3
+ export default {
4
+ properties: {
5
+ baseConfig: {
6
+ properties: {
7
+ depcheckConfig: {
8
+ type: "object"
9
+ },
10
+ name: {
11
+ type: "string"
12
+ }
13
+ },
14
+ type: ["string", "object"]
15
+ },
16
+ bin: {
17
+ additionalProperties: {
18
+ pattern: distPattern.source,
19
+ type: "string"
20
+ },
21
+ pattern: distPattern.source,
22
+ type: ["object", "string"]
23
+ },
24
+ dependencies: {
25
+ additionalProperties: {
26
+ type: "string"
27
+ },
28
+ type: "object"
29
+ },
30
+ description: {
31
+ type: "string"
32
+ },
33
+ devDependencies: {
34
+ additionalProperties: {
35
+ type: "string"
36
+ },
37
+ type: "object"
38
+ },
39
+ keywords: {
40
+ items: {
41
+ type: "string"
42
+ },
43
+ type: "array"
44
+ },
45
+ name: {
46
+ pattern: packageNameRegex.source,
47
+ type: "string"
48
+ },
49
+ packageManager: {
50
+ type: "string"
51
+ },
52
+ pnpm: {
53
+ properties: {
54
+ overrides: {
55
+ additionalProperties: {
56
+ type: "string"
57
+ },
58
+ type: "object"
59
+ }
60
+ },
61
+ type: "object"
62
+ },
63
+ version: {
64
+ type: "string"
65
+ }
66
+ },
67
+ type: "object"
68
+ };
@@ -7,5 +7,6 @@ export default async function (options) {
7
7
  };
8
8
  await this.lint(options);
9
9
  await this.typecheck(options);
10
+ await this.depcheck();
10
11
  await this.test(options);
11
12
  }
package/dist/index.js CHANGED
@@ -153,7 +153,7 @@ class Base {
153
153
  allowedMatches: [],
154
154
  commands: {},
155
155
  depcheckConfig: {
156
- detectors: [depcheck.detector.importDeclaration, depcheck.detector.requireCallExpression, depcheck.detector.requireResolveCallExpression, depcheckDetectorExeca, depcheckDetectorPackageName, depcheckDetectorBinName],
156
+ detectors: [depcheck.detector.exportDeclaration, depcheck.detector.importDeclaration, depcheck.detector.requireCallExpression, depcheck.detector.requireResolveCallExpression, depcheckDetectorExeca, depcheckDetectorPackageName, depcheckDetectorBinName],
157
157
  ignorePath: ".gitignore",
158
158
  parsers: {
159
159
  "**/*.ts": depcheck.parser.typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "14.0.4",
3
+ "version": "14.0.6",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",