Skip to content

Commit

Permalink
fix module resolution on project
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Jan 24, 2024
1 parent b57bf22 commit 78e1a80
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 94 deletions.
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
],
"version": "4.0.0-rc.3",
"main": "sources/advanced/index.ts",
"exports": {
".": "./sources/advanced/index.ts",
"./platform": "./sources/platform/node.ts"
},
"license": "MIT",
"sideEffects": false,
"repository": {
Expand All @@ -30,11 +34,12 @@
"typanion": "*"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-typescript": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^29.5.9",
"@types/lodash": "^4.14.179",
"@types/node": "^14.0.13",
"@types/rollup": "^0.54.0",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@yarnpkg/core": "^2.3.1",
Expand All @@ -46,12 +51,12 @@
"get-stream": "^5.1.0",
"jest": "^29.7.0",
"lodash": "^4.17.21",
"rollup": "^2.16.1",
"rollup": "^2.78.0",
"rollup-plugin-multi-input": "^1.3.1",
"ts-jest": "^29.1.1",
"ts-node": "^8.10.2",
"tslib": "^2.0.0",
"typescript": "^4.8.4"
"typescript": "^5.3.3"
},
"scripts": {
"prepack": "rm -rf lib && rollup -c",
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default {
}),
ts({
tsconfig: `tsconfig.dist.json`,
include: `./sources/**/*`,
}),
],
};
3 changes: 2 additions & 1 deletion tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"rootDir": "sources",
"outDir": "lib",
"types": [
"node"
"node",
"rollup"
]
},
"include": [
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"DOM",
"ES2018"
],
"module": "commonjs",
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
"skipLibCheck": true,
"strict": true,
Expand Down
Loading

0 comments on commit 78e1a80

Please sign in to comment.