@esportsplus/typescript 0.29.5 → 0.31.0

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.
Files changed (69) hide show
  1. package/README.md +11 -3
  2. package/bin/tsc-alias +1 -1
  3. package/build/cli/diagnostics.d.ts +4 -0
  4. package/build/cli/diagnostics.js +90 -0
  5. package/build/cli/tsc.d.ts +10 -2
  6. package/build/cli/tsc.js +352 -51
  7. package/build/compiler/ast.d.ts +7 -5
  8. package/build/compiler/ast.js +6 -6
  9. package/build/compiler/code.d.ts +5 -4
  10. package/build/compiler/code.js +12 -1
  11. package/build/compiler/coordinator.d.ts +17 -7
  12. package/build/compiler/coordinator.js +56 -32
  13. package/build/compiler/imports.d.ts +7 -3
  14. package/build/compiler/imports.js +30 -24
  15. package/build/compiler/index.d.ts +3 -0
  16. package/build/compiler/index.js +1 -0
  17. package/build/compiler/language-service.d.ts +24 -5
  18. package/build/compiler/language-service.js +215 -53
  19. package/build/compiler/plugins/index.d.ts +4 -2
  20. package/build/compiler/plugins/tsc.d.ts +1 -1
  21. package/build/compiler/plugins/vite.d.ts +6 -3
  22. package/build/compiler/plugins/vite.js +12 -7
  23. package/build/compiler/sourcemap.d.ts +50 -0
  24. package/build/compiler/sourcemap.js +247 -0
  25. package/build/compiler/types.d.ts +7 -6
  26. package/build/compiler/uid.d.ts +5 -2
  27. package/build/compiler/uid.js +33 -4
  28. package/build/index.d.ts +1 -1
  29. package/build/index.js +1 -1
  30. package/build/ts.d.ts +3 -0
  31. package/build/ts.js +3 -0
  32. package/package.json +22 -8
  33. package/tsconfig.dev.json +13 -0
  34. package/tsconfig.package.json +4 -1
  35. package/.claude/skills/code-audit/registry-typescript.json +0 -326
  36. package/.editorconfig +0 -9
  37. package/.gitattributes +0 -2
  38. package/.github/dependabot.yml +0 -25
  39. package/.github/workflows/bump.yml +0 -27
  40. package/.github/workflows/dependabot.yml +0 -58
  41. package/.github/workflows/publish.yml +0 -42
  42. package/.github/workflows/templates/bump.yml +0 -9
  43. package/.github/workflows/templates/dependabot.yml +0 -12
  44. package/.github/workflows/templates/publish.yml +0 -16
  45. package/src/cli/tsc.ts +0 -235
  46. package/src/compiler/ast.ts +0 -60
  47. package/src/compiler/code.ts +0 -27
  48. package/src/compiler/coordinator.ts +0 -279
  49. package/src/compiler/imports.ts +0 -175
  50. package/src/compiler/index.ts +0 -7
  51. package/src/compiler/language-service.ts +0 -121
  52. package/src/compiler/plugins/index.ts +0 -5
  53. package/src/compiler/plugins/tsc.ts +0 -6
  54. package/src/compiler/plugins/vite.ts +0 -91
  55. package/src/compiler/types.ts +0 -83
  56. package/src/compiler/uid.ts +0 -10
  57. package/src/constants.ts +0 -4
  58. package/src/index.ts +0 -1
  59. package/tests/cli/tsc.test.ts +0 -155
  60. package/tests/compiler/ast.test.ts +0 -131
  61. package/tests/compiler/code.test.ts +0 -73
  62. package/tests/compiler/coordinator.bench.ts +0 -101
  63. package/tests/compiler/coordinator.test.ts +0 -855
  64. package/tests/compiler/imports.test.ts +0 -167
  65. package/tests/compiler/language-service.test.ts +0 -90
  66. package/tests/compiler/plugins.test.ts +0 -172
  67. package/tests/compiler/uid.test.ts +0 -70
  68. package/tsconfig.json +0 -3
  69. package/vitest.config.ts +0 -14
@@ -1,4 +1,5 @@
1
- import type ts from 'typescript';
1
+ import type { Node, SourceFile } from 'typescript/unstable/ast';
2
+ import type { Checker, Program } from 'typescript/unstable/sync';
2
3
  type ImportIntent = {
3
4
  add?: string[];
4
5
  namespace?: string;
@@ -18,16 +19,16 @@ type Replacement = Range & {
18
19
  newText: string;
19
20
  };
20
21
  type ReplacementIntent = {
21
- generate: (sourceFile: ts.SourceFile) => string;
22
- node: ts.Node;
22
+ generate: (sourceFile: SourceFile) => string;
23
+ node: Node;
23
24
  };
24
25
  type SharedContext = Map<string, unknown>;
25
26
  type TransformContext = {
26
- checker: ts.TypeChecker;
27
+ checker: Checker;
27
28
  code: string;
28
- program: ts.Program;
29
+ program: Program;
29
30
  shared: SharedContext;
30
- sourceFile: ts.SourceFile;
31
+ sourceFile: SourceFile;
31
32
  };
32
33
  type TransformResult = {
33
34
  imports?: ImportIntent[];
@@ -1,2 +1,5 @@
1
- declare const _default: (name: string) => string;
2
- export default _default;
1
+ declare function uid(name: string): string;
2
+ declare namespace uid {
3
+ var scope: (root: string, fileName: string, code: string) => void;
4
+ }
5
+ export default uid;
@@ -1,5 +1,34 @@
1
- import { uuid } from '@esportsplus/utilities';
2
- let i = 0, namespace = uuid().replace(/[^A-Za-z0-9]/g, '');
3
- export default (name) => {
4
- return name + '_' + namespace + (i++).toString(36);
1
+ import path from 'path';
2
+ const BACKSLASH_REGEX = /\\/g;
3
+ const FNV_OFFSET_BASIS = 2166136261;
4
+ const FNV_PRIME = 16777619;
5
+ const NAMESPACE_WIDTH = 7;
6
+ const UNSCOPED_NAMESPACE = 'u';
7
+ let counter = 0, namespace = UNSCOPED_NAMESPACE;
8
+ function derive(id, code) {
9
+ let candidate = format(id), salt = 0;
10
+ while (code.includes(candidate)) {
11
+ salt++;
12
+ candidate = format(id + '#' + salt);
13
+ }
14
+ return candidate;
15
+ }
16
+ function format(id) {
17
+ return hash(id).toString(36).padStart(NAMESPACE_WIDTH, '0');
18
+ }
19
+ function hash(value) {
20
+ let h = FNV_OFFSET_BASIS;
21
+ for (let i = 0, n = value.length; i < n; i++) {
22
+ h ^= value.charCodeAt(i);
23
+ h = Math.imul(h, FNV_PRIME);
24
+ }
25
+ return h >>> 0;
26
+ }
27
+ const uid = (name) => {
28
+ return name + '_' + namespace + (counter++).toString(36);
5
29
  };
30
+ uid.scope = (root, fileName, code) => {
31
+ counter = 0;
32
+ namespace = derive(path.relative(root, fileName).replace(BACKSLASH_REGEX, '/') || fileName, code);
33
+ };
34
+ export default uid;
package/build/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default as ts } from 'typescript';
1
+ export * as ts from './ts.js';
package/build/index.js CHANGED
@@ -1 +1 @@
1
- export { default as ts } from 'typescript';
1
+ export * as ts from './ts.js';
package/build/ts.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from 'typescript/unstable/ast';
2
+ export * from 'typescript/unstable/sync';
3
+ export { ModifierFlags } from 'typescript/unstable/ast';
package/build/ts.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from 'typescript/unstable/ast';
2
+ export * from 'typescript/unstable/sync';
3
+ export { ModifierFlags } from 'typescript/unstable/ast';
package/package.json CHANGED
@@ -9,17 +9,18 @@
9
9
  "dependencies": {
10
10
  "@esportsplus/cli-passthrough": "^0.0.15",
11
11
  "@esportsplus/utilities": "^0.28.0",
12
- "@types/node": "^26.0.1",
13
- "tsc-alias": "^1.8.17",
14
- "typescript": "^6.0.3"
12
+ "@types/node": "^26.1.1",
13
+ "tsc-alias": "^1.9.1",
14
+ "typescript": "7.0.2"
15
15
  },
16
16
  "devDependencies": {
17
- "vite": "^8.1.0",
18
- "vitest": "^4.1.9"
17
+ "vite": "^8.1.5",
18
+ "vitest": "^4.1.10"
19
19
  },
20
20
  "exports": {
21
21
  "./package.json": "./package.json",
22
22
  "./tsconfig.browser.json": "./tsconfig.browser.json",
23
+ "./tsconfig.dev.json": "./tsconfig.dev.json",
23
24
  "./tsconfig.node.json": "./tsconfig.node.json",
24
25
  "./tsconfig.package.json": "./tsconfig.package.json",
25
26
  "./compiler": {
@@ -31,6 +32,15 @@
31
32
  "default": "./build/index.js"
32
33
  }
33
34
  },
35
+ "files": [
36
+ "bin",
37
+ "build",
38
+ "tsconfig.base.json",
39
+ "tsconfig.browser.json",
40
+ "tsconfig.dev.json",
41
+ "tsconfig.node.json",
42
+ "tsconfig.package.json"
43
+ ],
34
44
  "main": "build/index.js",
35
45
  "name": "@esportsplus/typescript",
36
46
  "overrides": {
@@ -43,11 +53,15 @@
43
53
  },
44
54
  "type": "module",
45
55
  "types": "build/index.d.ts",
46
- "version": "0.29.5",
56
+ "version": "0.31.0",
47
57
  "scripts": {
58
+ "agent:bench": "pnpm bench:run",
59
+ "agent:build": "pnpm build",
60
+ "agent:test": "pnpm typecheck && pnpm test",
48
61
  "bench:run": "vitest bench --run",
49
- "build": "tsc && tsc-alias",
62
+ "build": "tsc -p tsconfig.package.json && tsc-alias -p tsconfig.package.json",
50
63
  "-": "-",
51
- "test": "vitest run"
64
+ "test": "vitest run",
65
+ "typecheck": "tsc"
52
66
  }
53
67
  }
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "noEmit": true,
4
+ "rootDir": "${configDir}"
5
+ },
6
+ "extends": "./tsconfig.package.json",
7
+ "include": [
8
+ "${configDir}/*.config.ts",
9
+ "${configDir}/bench/**/*",
10
+ "${configDir}/src/**/*",
11
+ "${configDir}/test/**/*"
12
+ ]
13
+ }
@@ -6,7 +6,10 @@
6
6
  "dom",
7
7
  "dom.iterable",
8
8
  "es2024"
9
+ ],
10
+ "types": [
11
+ "node"
9
12
  ]
10
13
  },
11
14
  "extends": "./tsconfig.base.json"
12
- }
15
+ }
@@ -1,326 +0,0 @@
1
- {
2
- "project": "@esportsplus/typescript",
3
- "version": "0.29.0",
4
- "target": "src/ tests/",
5
- "runs": [
6
- {
7
- "date": "2026-04-11",
8
- "commit": "e0657fe",
9
- "mode": "full",
10
- "files_audited": 13,
11
- "files_skipped": 0,
12
- "findings_new": 2,
13
- "findings_recurring": 0,
14
- "sqale_rating": "A",
15
- "agent_results": {
16
- "correctness": { "status": "ok", "symbols": 26, "sub_targets": 1, "findings": 1 },
17
- "security": { "status": "ok", "symbols": 14, "sub_targets": 1, "findings": 0 },
18
- "performance": { "status": "ok", "symbols": 15, "sub_targets": 1, "findings": 1 },
19
- "architecture": { "status": "ok", "symbols": 32, "sub_targets": 1, "findings": 0 },
20
- "testing": { "status": "ok", "symbols": 16, "sub_targets": 1, "findings": 1 }
21
- },
22
- "agent_overlap": {},
23
- "estimated_remaining": null
24
- },
25
- {
26
- "date": "2026-04-11",
27
- "commit": "e0657fe",
28
- "mode": "incremental",
29
- "files_audited": 13,
30
- "files_skipped": 0,
31
- "findings_new": 0,
32
- "findings_recurring": 1,
33
- "sqale_rating": "A",
34
- "agent_results": {
35
- "correctness": { "status": "ok", "symbols": 26, "sub_targets": 1, "findings": 0 },
36
- "security": { "status": "ok", "symbols": 14, "sub_targets": 1, "findings": 0 },
37
- "performance": { "status": "ok", "symbols": 15, "sub_targets": 1, "findings": 0 },
38
- "architecture": { "status": "ok", "symbols": 32, "sub_targets": 1, "findings": 0 },
39
- "testing": { "status": "ok", "symbols": 16, "sub_targets": 1, "findings": 1 }
40
- },
41
- "agent_overlap": {},
42
- "estimated_remaining": null
43
- },
44
- {
45
- "date": "2026-04-11",
46
- "commit": "e0657fe",
47
- "mode": "incremental",
48
- "files_audited": 13,
49
- "files_skipped": 0,
50
- "findings_new": 0,
51
- "findings_recurring": 0,
52
- "sqale_rating": "A",
53
- "agent_results": {
54
- "correctness": { "status": "ok", "symbols": 26, "sub_targets": 1, "findings": 0 },
55
- "security": { "status": "ok", "symbols": 14, "sub_targets": 1, "findings": 0 },
56
- "performance": { "status": "ok", "symbols": 15, "sub_targets": 1, "findings": 0 },
57
- "architecture": { "status": "ok", "symbols": 32, "sub_targets": 1, "findings": 0 },
58
- "testing": { "status": "ok", "symbols": 16, "sub_targets": 1, "findings": 0 }
59
- },
60
- "agent_overlap": {},
61
- "estimated_remaining": null
62
- },
63
- {
64
- "date": "2026-04-11",
65
- "commit": "59ea7a3",
66
- "mode": "incremental",
67
- "files_audited": 19,
68
- "files_skipped": 0,
69
- "findings_new": 9,
70
- "findings_recurring": 1,
71
- "sqale_rating": "B",
72
- "agent_results": {
73
- "correctness": { "status": "ok", "symbols": 26, "sub_targets": 1, "findings": 0 },
74
- "security": { "status": "ok", "symbols": 14, "sub_targets": 1, "findings": 0 },
75
- "performance": { "status": "ok", "symbols": 15, "sub_targets": 1, "findings": 0 },
76
- "architecture": { "status": "ok", "symbols": 32, "sub_targets": 1, "findings": 2 },
77
- "testing": { "status": "ok", "symbols": 35, "sub_targets": 1, "findings": 7 }
78
- },
79
- "agent_overlap": {},
80
- "estimated_remaining": null
81
- },
82
- {
83
- "date": "2026-04-11",
84
- "commit": "59ea7a3",
85
- "mode": "incremental",
86
- "files_audited": 21,
87
- "files_skipped": 0,
88
- "findings_new": 0,
89
- "findings_recurring": 0,
90
- "sqale_rating": "A",
91
- "agent_results": {
92
- "correctness": { "status": "ok", "symbols": 24, "sub_targets": 1, "findings": 0 },
93
- "security": { "status": "ok", "symbols": 14, "sub_targets": 1, "findings": 0 },
94
- "performance": { "status": "ok", "symbols": 13, "sub_targets": 1, "findings": 0 },
95
- "architecture": { "status": "ok", "symbols": 30, "sub_targets": 1, "findings": 0 },
96
- "testing": { "status": "ok", "symbols": 35, "sub_targets": 1, "findings": 0 }
97
- },
98
- "agent_overlap": {},
99
- "estimated_remaining": null
100
- },
101
- {
102
- "date": "2026-04-11",
103
- "commit": "59ea7a3",
104
- "mode": "incremental",
105
- "files_audited": 21,
106
- "files_skipped": 0,
107
- "findings_new": 0,
108
- "findings_recurring": 0,
109
- "sqale_rating": "A",
110
- "agent_results": {
111
- "correctness": { "status": "ok", "symbols": 24, "sub_targets": 1, "findings": 0 },
112
- "security": { "status": "ok", "symbols": 14, "sub_targets": 1, "findings": 0 },
113
- "performance": { "status": "ok", "symbols": 13, "sub_targets": 1, "findings": 0 },
114
- "architecture": { "status": "ok", "symbols": 30, "sub_targets": 1, "findings": 0 },
115
- "testing": { "status": "ok", "symbols": 35, "sub_targets": 1, "findings": 0 }
116
- },
117
- "agent_overlap": {},
118
- "estimated_remaining": null
119
- }
120
- ],
121
- "findings": {
122
- "F-001": {
123
- "status": "implemented",
124
- "file": "src/compiler/coordinator.ts",
125
- "symbol": "transform",
126
- "category": "correctness",
127
- "title": "AST Position Staleness After Code Modification",
128
- "content_hash": "ast-position-staleness-coordinator-transform",
129
- "file_hash": "",
130
- "first_seen": "2026-04-11",
131
- "last_seen": "2026-04-11",
132
- "found_by": ["correctness"],
133
- "priority_score": 66
134
- },
135
- "F-002": {
136
- "status": "deferred",
137
- "file": "src/compiler/coordinator.ts",
138
- "symbol": "applyImports",
139
- "category": "optimize",
140
- "title": "Redundant SourceFile Recreation in applyImports Loop",
141
- "content_hash": "redundant-sourcefile-recreation-applyimports",
142
- "file_hash": "",
143
- "first_seen": "2026-04-11",
144
- "last_seen": "2026-04-11",
145
- "found_by": ["performance"],
146
- "priority_score": 44
147
- },
148
- "F-003": {
149
- "status": "implemented",
150
- "file": "src/",
151
- "symbol": "*",
152
- "category": "coverage",
153
- "title": "Complete Absence of Test Infrastructure",
154
- "content_hash": "missing-test-infrastructure",
155
- "file_hash": "",
156
- "first_seen": "2026-04-11",
157
- "last_seen": "2026-04-11",
158
- "found_by": ["testing"],
159
- "priority_score": 114
160
- },
161
- "F-004": {
162
- "status": "implemented",
163
- "file": "src/compiler/language-service.ts",
164
- "symbol": "get",
165
- "category": "loc",
166
- "title": "languageService.get() is dead code",
167
- "content_hash": "dead-code-language-service-get",
168
- "file_hash": "",
169
- "first_seen": "2026-04-11",
170
- "last_seen": "2026-04-11",
171
- "found_by": ["architecture"],
172
- "priority_score": 45
173
- },
174
- "F-005": {
175
- "status": "implemented",
176
- "file": "src/compiler/language-service.ts",
177
- "symbol": "delete",
178
- "category": "loc",
179
- "title": "languageService.delete() is dead code",
180
- "content_hash": "dead-code-language-service-delete",
181
- "file_hash": "",
182
- "first_seen": "2026-04-11",
183
- "last_seen": "2026-04-11",
184
- "found_by": ["architecture"],
185
- "priority_score": 45
186
- },
187
- "F-006": {
188
- "status": "implemented",
189
- "file": "src/compiler/language-service.ts",
190
- "symbol": "*",
191
- "category": "coverage",
192
- "title": "language-service.ts has 0 test coverage",
193
- "content_hash": "no-test-coverage-language-service",
194
- "file_hash": "",
195
- "first_seen": "2026-04-11",
196
- "last_seen": "2026-04-11",
197
- "found_by": ["testing"],
198
- "priority_score": 50
199
- },
200
- "F-007": {
201
- "status": "open",
202
- "file": "src/cli/tsc.ts",
203
- "symbol": "*",
204
- "category": "coverage",
205
- "title": "cli/tsc.ts has 0 test coverage",
206
- "content_hash": "no-test-coverage-cli-tsc",
207
- "file_hash": "",
208
- "first_seen": "2026-04-11",
209
- "last_seen": "2026-04-11",
210
- "found_by": ["testing"],
211
- "priority_score": 35
212
- },
213
- "F-008": {
214
- "status": "implemented",
215
- "file": "src/compiler/coordinator.ts",
216
- "symbol": "transform",
217
- "category": "test-quality",
218
- "title": "coordinator plugin.transform() throw path untested",
219
- "content_hash": "test-quality-coordinator-throw-path",
220
- "file_hash": "",
221
- "first_seen": "2026-04-11",
222
- "last_seen": "2026-04-11",
223
- "found_by": ["testing"],
224
- "priority_score": 48
225
- },
226
- "F-009": {
227
- "status": "implemented",
228
- "file": "src/compiler/coordinator.ts",
229
- "symbol": "transform",
230
- "category": "test-quality",
231
- "title": "coordinator null sourceFile fallback path untested",
232
- "content_hash": "test-quality-coordinator-null-sourcefile",
233
- "file_hash": "",
234
- "first_seen": "2026-04-11",
235
- "last_seen": "2026-04-11",
236
- "found_by": ["testing"],
237
- "priority_score": 48
238
- },
239
- "F-010": {
240
- "status": "implemented",
241
- "file": "src/compiler/plugins/vite.ts",
242
- "symbol": "transform",
243
- "category": "test-quality",
244
- "title": "vite plugin error catch path untested",
245
- "content_hash": "test-quality-vite-error-catch",
246
- "file_hash": "",
247
- "first_seen": "2026-04-11",
248
- "last_seen": "2026-04-11",
249
- "found_by": ["testing"],
250
- "priority_score": 48
251
- },
252
- "F-011": {
253
- "status": "implemented",
254
- "file": "src/compiler/plugins/vite.ts",
255
- "symbol": "transform",
256
- "category": "test-quality",
257
- "title": "vite plugin sourceFile undefined fallback untested",
258
- "content_hash": "test-quality-vite-sourcefile-fallback",
259
- "file_hash": "",
260
- "first_seen": "2026-04-11",
261
- "last_seen": "2026-04-11",
262
- "found_by": ["testing"],
263
- "priority_score": 45
264
- },
265
- "F-012": {
266
- "status": "implemented",
267
- "file": "src/compiler/imports.ts",
268
- "symbol": "includes",
269
- "category": "test-quality",
270
- "title": "imports.includes() getAliasedSymbol catch block untested",
271
- "content_hash": "test-quality-imports-aliased-catch",
272
- "file_hash": "",
273
- "first_seen": "2026-04-11",
274
- "last_seen": "2026-04-11",
275
- "found_by": ["testing"],
276
- "priority_score": 42
277
- }
278
- },
279
- "clean_symbols": {},
280
- "convergence": {
281
- "per_category": {
282
- "correctness": {
283
- "findings_per_run": [1, 0, 0, 0, 0, 0],
284
- "successful_runs": 6,
285
- "consecutive_zero": 5,
286
- "last_agent_success": true,
287
- "status": "CONVERGED",
288
- "reason": "0 new findings on 5 consecutive successful runs"
289
- },
290
- "security": {
291
- "findings_per_run": [0, 0, 0, 0, 0, 0],
292
- "successful_runs": 6,
293
- "consecutive_zero": 6,
294
- "last_agent_success": true,
295
- "status": "CONVERGED",
296
- "reason": "0 new findings on 6 consecutive successful runs"
297
- },
298
- "performance": {
299
- "findings_per_run": [1, 0, 0, 0, 0, 0],
300
- "successful_runs": 6,
301
- "consecutive_zero": 5,
302
- "last_agent_success": true,
303
- "status": "CONVERGED",
304
- "reason": "0 new findings on 5 consecutive successful runs"
305
- },
306
- "architecture": {
307
- "findings_per_run": [0, 0, 0, 2, 0, 0],
308
- "successful_runs": 6,
309
- "consecutive_zero": 2,
310
- "last_agent_success": true,
311
- "status": "CONVERGED",
312
- "reason": "0 new findings on 2 consecutive runs after fixes"
313
- },
314
- "testing": {
315
- "findings_per_run": [1, 1, 0, 7, 0, 0],
316
- "successful_runs": 6,
317
- "consecutive_zero": 2,
318
- "last_agent_success": true,
319
- "status": "CONVERGED",
320
- "reason": "0 new findings on 2 consecutive runs after fixes"
321
- }
322
- },
323
- "overall": "CONVERGED",
324
- "reason": "all 5 categories converged with 0 findings on 2+ consecutive runs"
325
- }
326
- }
package/.editorconfig DELETED
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 4
6
- charset = utf-8
7
- trim_trailing_whitespace = true
8
- insert_final_newline = true
9
- end_of_line = lf
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
@@ -1,25 +0,0 @@
1
- # To get started with Dependabot version updates, you'll need to specify which
2
- # package ecosystems to update and where the package manifests are located.
3
- # Please see the documentation for all configuration options:
4
- # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5
-
6
- version: 2
7
-
8
- registries:
9
- npm-npmjs:
10
- token: ${{secrets.NPM_TOKEN}}
11
- type: npm-registry
12
- url: https://registry.npmjs.org
13
-
14
- updates:
15
- - package-ecosystem: "npm"
16
- directory: "/"
17
- groups:
18
- production-dependencies:
19
- dependency-type: "production"
20
- development-dependencies:
21
- dependency-type: "development"
22
- registries:
23
- - npm-npmjs
24
- schedule:
25
- interval: "daily"
@@ -1,27 +0,0 @@
1
- name: bump version
2
-
3
- on:
4
- push:
5
- branches: '**' # only trigger on branches, not on tags
6
- workflow_call:
7
-
8
- concurrency:
9
- group: ${{ github.workflow }}-${{ github.ref }}
10
- cancel-in-progress: true
11
-
12
- permissions:
13
- contents: write
14
-
15
- jobs:
16
- bump:
17
- runs-on: ubuntu-latest
18
- steps:
19
- - name: checkout repo
20
- uses: actions/checkout@v7
21
- with:
22
- fetch-depth: 0
23
- - name: bump version
24
- uses: jpb06/bump-package@latest
25
- with:
26
- minor-keywords: feat,minor,refactor
27
- patch-keywords: fix,chore
@@ -1,58 +0,0 @@
1
- name: dependabot automerge
2
-
3
- on:
4
- pull_request:
5
- types: [opened, synchronize, labeled]
6
- workflow_call:
7
- secrets:
8
- NPM_TOKEN:
9
- required: true
10
-
11
- concurrency:
12
- group: ${{ github.workflow }}-${{ github.ref }}
13
- cancel-in-progress: true
14
-
15
- permissions:
16
- contents: write
17
- pull-requests: write
18
-
19
- jobs:
20
- build:
21
- runs-on: ubuntu-latest
22
- steps:
23
- - uses: actions/checkout@v7
24
- - uses: pnpm/action-setup@v6
25
- name: Install pnpm
26
- with:
27
- run_install: false
28
- version: latest
29
- - uses: actions/setup-node@v6
30
- with:
31
- cache: 'pnpm'
32
- node-version: 'latest'
33
- registry-url: 'https://registry.npmjs.org'
34
- - run: pnpm i && pnpm build
35
- env:
36
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37
-
38
- automerge:
39
- needs: build
40
- permissions:
41
- pull-requests: write
42
- contents: write
43
- runs-on: ubuntu-latest
44
- if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
45
- steps:
46
- - uses: dependabot/fetch-metadata@v3
47
- id: metadata
48
- with:
49
- alert-lookup: true
50
- compat-lookup: true
51
- github-token: ${{ secrets.GITHUB_TOKEN }}
52
- - name: Approve and merge Dependabot PR
53
- run: |
54
- gh pr review --approve "$PR_URL"
55
- gh pr merge --squash --auto "$PR_URL"
56
- env:
57
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
- PR_URL: ${{ github.event.pull_request.html_url }}