Skip to content

Commit 6bc42f0

Browse files
Copilotfregante
andcommitted
Remove tsx, use Node's native TypeScript execution, commit distribution files
- Removed tsx dependency from devDependencies - Changed postbuild:typescript to use node --experimental-strip-types (requires Node 22.18+) - Removed distribution folder from .gitignore - Added distribution folder with generated files to version control Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
1 parent 04a039d commit 6bc42f0

File tree

8 files changed

+991
-509
lines changed

8 files changed

+991
-509
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Thumbs.db
88
*.log
99
logs
1010
*.map
11-
distribution
1211
dist
1312
.cache
1413
.parcel-cache

add-examples-to-dts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env tsx
1+
#!/usr/bin/env node --experimental-strip-types
22
import {readFileSync, writeFileSync} from 'node:fs';
33
// Import index.ts to populate the test data via side effect
44
// eslint-disable-next-line import/no-unassigned-import, n/file-extension-in-import

distribution/collector.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @file This needs to be in a separate file so it can bee tree-shaken before being published, while still being importable by tests */
2+
export declare const testableUrls: Map<string, string[]>;
3+
export declare function addTests(test: string, urls: string[]): void;
4+
export declare function getTests(detectName: string): string[];
5+
export declare function getAllUrls(): Set<string>;

distribution/index.d.ts

Lines changed: 629 additions & 0 deletions
Large diffs are not rendered by default.

distribution/index.js

Lines changed: 354 additions & 0 deletions
Large diffs are not rendered by default.

distribution/index.test.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

0 commit comments

Comments
 (0)