Skip to content

Commit f22fa94

Browse files
committed
build: enable verbatimModuleSyntax and erasableSyntaxOnly
1 parent faf6cc7 commit f22fa94

12 files changed

Lines changed: 13 additions & 24 deletions

File tree

packages/codemod-rewrite-module-specifiers-to-full-paths/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"license": "MIT",
1414
"author": "Patrick Kerschbaum <patrick.kerschbaum@gmail.com>",
15+
"type": "module",
1516
"imports": {
1617
"#pkg/*": "./dist/*",
1718
"#pkg-test/*": "./test/*"

packages/codemod-rewrite-module-specifiers-to-full-paths/src/transform/resolve-module-specifier-to-full-path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'node:path';
22
import invariant from 'tiny-invariant';
33
import ts from 'typescript';
44

5-
import { VisitorContext } from '#pkg/transform/types.js';
5+
import type { VisitorContext } from '#pkg/transform/types.js';
66

77
const tsExtensionToJsExtensionMap = {
88
/* map .d.ts and its variants to just .js */

packages/codemod-rewrite-module-specifiers-to-full-paths/tsconfig.build.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
"types": ["node", "ts-expose-internals"],
88

99
/* Emit */
10-
"outDir": "./dist",
11-
12-
/* Interop Constraints */
13-
/* disable "verbatimModuleSyntax" because it is annoying for CJS packages */
14-
"verbatimModuleSyntax": false
10+
"outDir": "./dist"
1511
},
1612
"include": ["src/**/*"]
1713
}

packages/commons-ecma/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"license": "MIT",
1414
"author": "Patrick Kerschbaum <patrick.kerschbaum@gmail.com>",
15+
"type": "module",
1516
"imports": {
1617
"#pkg/*": "./dist/*"
1718
},

packages/commons-ecma/tsconfig.build.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
"rootDir": "./src",
66

77
/* Emit */
8-
"outDir": "./dist",
9-
10-
/* Interop Constraints */
11-
/* disable "verbatimModuleSyntax" because it is annoying for CJS packages */
12-
"verbatimModuleSyntax": false
8+
"outDir": "./dist"
139
},
1410
"include": ["src/**/*"]
1511
}

packages/commons-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"license": "MIT",
1414
"author": "Patrick Kerschbaum <patrick.kerschbaum@gmail.com>",
15+
"type": "module",
1516
"imports": {
1617
"#pkg/*": "./dist/*"
1718
},

packages/commons-node/tsconfig.build.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"types": ["node"],
77

88
/* Emit */
9-
"outDir": "./dist",
10-
11-
/* Interop Constraints */
12-
/* disable "verbatimModuleSyntax" because it is annoying for CJS packages */
13-
"verbatimModuleSyntax": false
9+
"outDir": "./dist"
1410
},
1511
"include": ["src/**/*"]
1612
}

packages/runtime-extensions-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"license": "MIT",
1414
"author": "Patrick Kerschbaum <patrick.kerschbaum@gmail.com>",
15+
"type": "module",
1516
"imports": {
1617
"#pkg/*": "./dist/*"
1718
},

packages/runtime-extensions-node/tsconfig.build.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"types": ["node"],
77

88
/* Emit */
9-
"outDir": "./dist",
10-
11-
/* Interop Constraints */
12-
/* disable "verbatimModuleSyntax" because it is annoying for CJS packages */
13-
"verbatimModuleSyntax": false
9+
"outDir": "./dist"
1410
},
1511
"include": ["src/**/*"]
1612
}

packages/typescript-eslint-rules-requiring-type-info/test-pkg-consumption-scenarios/compile-typescript-cjs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
/* based on https://patricktree.com/tidbits/sensible-tsconfig-defaults */
2+
/* based on https://patricktree.me/tidbits/sensible-tsconfig-defaults */
33

44
"compilerOptions": {
55
/* Language and Environment */

0 commit comments

Comments
 (0)