@chanom/dev-config 0.0.2 → 0.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.
@@ -0,0 +1,8 @@
1
+ //#region src/knip/base-config.d.ts
2
+ declare const _default: {
3
+ ignore: string[];
4
+ ignoreDependencies: string[];
5
+ ignoreExportsUsedInFile: true;
6
+ };
7
+ //#endregion
8
+ export { _default as default };
@@ -0,0 +1,13 @@
1
+ //#region src/knip/base-config.ts
2
+ var base_config_default = {
3
+ ignore: [
4
+ "**/dist/**",
5
+ "**/build/**",
6
+ "**/.turbo/**",
7
+ "**/CHANGELOG.md"
8
+ ],
9
+ ignoreDependencies: ["@chanom/dev-config"],
10
+ ignoreExportsUsedInFile: true
11
+ };
12
+ //#endregion
13
+ export { base_config_default as default };
@@ -0,0 +1,11 @@
1
+ //#region src/knip/index.d.ts
2
+ declare const _default: {
3
+ entry: string[];
4
+ project: string[];
5
+ ignore: string[];
6
+ ignoreDependencies: string[];
7
+ vite: true;
8
+ ignoreExportsUsedInFile: true;
9
+ };
10
+ //#endregion
11
+ export { _default as default };
@@ -0,0 +1,20 @@
1
+ import base_config_default from "./base-config.js";
2
+ //#region src/knip/index.ts
3
+ var knip_default = {
4
+ ...base_config_default,
5
+ entry: ["index.html", "src/main.tsx"],
6
+ project: ["src/**/*.{ts,tsx}"],
7
+ ignore: [
8
+ ...base_config_default.ignore ?? [],
9
+ "**/*.stories.tsx",
10
+ "src/vite-env.d.ts"
11
+ ],
12
+ ignoreDependencies: [
13
+ ...base_config_default.ignoreDependencies ?? [],
14
+ "@types/react",
15
+ "@types/react-dom"
16
+ ],
17
+ vite: true
18
+ };
19
+ //#endregion
20
+ export { knip_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chanom/dev-config",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Shared oxlint and oxfmt config",
5
5
  "files": [
6
6
  "dist"
@@ -22,6 +22,14 @@
22
22
  "./oxlint/base": {
23
23
  "types": "./dist/oxlint/base-config.d.ts",
24
24
  "default": "./dist/oxlint/base-config.js"
25
+ },
26
+ "./knip/config": {
27
+ "types": "./dist/knip/index.d.ts",
28
+ "default": "./dist/knip/index.js"
29
+ },
30
+ "./knip/base": {
31
+ "types": "./dist/knip/base-config.d.ts",
32
+ "default": "./dist/knip/base-config.js"
25
33
  }
26
34
  },
27
35
  "publishConfig": {
@@ -30,12 +38,14 @@
30
38
  "devDependencies": {
31
39
  "@tsconfig/node-lts": "24.0.0",
32
40
  "@tsconfig/node-ts": "23.6.4",
41
+ "knip": "6.23.0",
33
42
  "oxfmt": "0.56.0",
34
43
  "oxlint": "1.71.0",
35
44
  "tsdown": "0.22.3",
36
45
  "typescript": "6.0.3"
37
46
  },
38
47
  "peerDependencies": {
48
+ "knip": "6.23.0",
39
49
  "oxfmt": "0.56.0",
40
50
  "oxlint": "1.71.0"
41
51
  },