Skip to content

Commit 4a95084

Browse files
committed
breaking: use esbuild for bundling, esm-only, handwritten types
1 parent 5d78a74 commit 4a95084

File tree

6 files changed

+6142
-7026
lines changed

6 files changed

+6142
-7026
lines changed

.npmignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

__test__/run_test262.mjs renamed to __test__/run_test262.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { fileURLToPath } from 'url';
33
// @ts-ignore - no types
44
import run from 'test262-parser-runner';
55
import * as acorn from 'acorn';
6-
import { tsPlugin } from '../lib/index.mjs';
6+
// import { tsPlugin } from '../dist/acorn-typescript.esm.js';
7+
import { tsPlugin } from '../index.js';
78

89
const parser = acorn.Parser.extend(tsPlugin());
910
const UNSUPPORTED_FEATURES = [

index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Parser } from 'acorn';
2+
3+
declare function tsPlugin(options?: {
4+
dts?: boolean;
5+
allowSatisfies?: boolean;
6+
jsx?: {
7+
allowNamespaces?: boolean;
8+
allowNamespacedObjects?: boolean;
9+
};
10+
}): (BaseParser: typeof Parser) => typeof Parser;
11+
12+
export { tsPlugin, tsPlugin as default };

0 commit comments

Comments
 (0)