Skip to content

Commit da16d5e

Browse files
fix: package exports and type definitions (#8)
* Fix package exports and type definitions * Migrate to `NodeNext` module resolution * Check package exports during CI * Fix unit tests by bumping `ts-jest` * fix: remove fix-tsc-es-imports dependency and pre launch task * Use native Node.js instead of `cp` * chore: update dev dependencies * chore(package): bump version to 1.0.2 --------- Co-authored-by: Kevin Schaal <[email protected]>
1 parent c688936 commit da16d5e

File tree

68 files changed

+3808
-2172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3808
-2172
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ jobs:
2121
cache: 'npm'
2222
- run: npm ci
2323
- run: npm test
24+
- run: npx @arethetypeswrong/cli@latest -P

.vscode/launch.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"name": "Launch Program",
88
"skipFiles": ["<node_internals>/**"],
99
"program": "${workspaceFolder}/dist/basic-usage.js",
10-
"outFiles": ["${workspaceFolder}/**/*.js"],
11-
"preLaunchTask": "Fix ES Imports"
10+
"outFiles": ["${workspaceFolder}/**/*.js"]
1211
}
1312
]
1413
}

.vscode/tasks.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,6 @@
1111
"isDefault": true
1212
},
1313
"label": "tsc: watch - tsconfig.json"
14-
},
15-
{
16-
"label": "Fix ES Imports",
17-
"type": "shell",
18-
"command": "npx",
19-
"args": ["fix-tsc-es-imports", "-y"],
20-
"options": {
21-
"cwd": "${workspaceFolder}"
22-
},
23-
"presentation": {
24-
"reveal": "silent",
25-
"panel": "shared"
26-
},
27-
"problemMatcher": []
2814
}
2915
]
3016
}

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
export default {
2+
moduleNameMapper: {
3+
'^(\\.\\.?\\/.+)\\.js$': '$1'
4+
},
25
roots: ['<rootDir>/src'],
36
testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
47
transform: {

0 commit comments

Comments
 (0)