Skip to content

Commit

Permalink
fix: package exports and type definitions (#8)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
aryaemami59 and m31coding authored Nov 22, 2024
1 parent c688936 commit da16d5e
Show file tree
Hide file tree
Showing 68 changed files with 3,808 additions and 2,172 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm test
- run: npx @arethetypeswrong/cli@latest -P
3 changes: 1 addition & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/dist/basic-usage.js",
"outFiles": ["${workspaceFolder}/**/*.js"],
"preLaunchTask": "Fix ES Imports"
"outFiles": ["${workspaceFolder}/**/*.js"]
}
]
}
14 changes: 0 additions & 14 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@
"isDefault": true
},
"label": "tsc: watch - tsconfig.json"
},
{
"label": "Fix ES Imports",
"type": "shell",
"command": "npx",
"args": ["fix-tsc-es-imports", "-y"],
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"reveal": "silent",
"panel": "shared"
},
"problemMatcher": []
}
]
}
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export default {
moduleNameMapper: {
'^(\\.\\.?\\/.+)\\.js$': '$1'
},
roots: ['<rootDir>/src'],
testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
transform: {
Expand Down
Loading

0 comments on commit da16d5e

Please sign in to comment.