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 aea3797
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 65 deletions.
10 changes: 7 additions & 3 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,8 +34,8 @@
"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",
Expand All @@ -51,7 +55,7 @@
"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.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
138 changes: 78 additions & 60 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -864,46 +864,57 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-node-resolve@npm:^10.0.0":
version: 10.0.0
resolution: "@rollup/plugin-node-resolve@npm:10.0.0"
"@rollup/plugin-node-resolve@npm:^15.2.3":
version: 15.2.3
resolution: "@rollup/plugin-node-resolve@npm:15.2.3"
dependencies:
"@rollup/pluginutils": "npm:^3.1.0"
"@types/resolve": "npm:1.17.1"
builtin-modules: "npm:^3.1.0"
"@rollup/pluginutils": "npm:^5.0.1"
"@types/resolve": "npm:1.20.2"
deepmerge: "npm:^4.2.2"
is-builtin-module: "npm:^3.2.1"
is-module: "npm:^1.0.0"
resolve: "npm:^1.17.0"
resolve: "npm:^1.22.1"
peerDependencies:
rollup: ^1.20.0||^2.0.0
checksum: 9ddda719bc31b20961dd0c9d1d66089561d2ae7cb7732ee097de259b4da11775b60706372baa9034c6a94990ba4ebec91b0055063563d476be70c4a03b41a201
rollup: ^2.78.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
checksum: 598c15615086f26e28c4b3dbf966682af7fb0e5bc277cc4e57f559668a3be675a63ab261eb34729ce9569c3a51342c48863e50b5efe02e0fc1571828f0113f9d
languageName: node
linkType: hard

"@rollup/plugin-typescript@npm:^6.1.0":
version: 6.1.0
resolution: "@rollup/plugin-typescript@npm:6.1.0"
"@rollup/plugin-typescript@npm:^11.1.6":
version: 11.1.6
resolution: "@rollup/plugin-typescript@npm:11.1.6"
dependencies:
"@rollup/pluginutils": "npm:^3.1.0"
resolve: "npm:^1.17.0"
"@rollup/pluginutils": "npm:^5.1.0"
resolve: "npm:^1.22.1"
peerDependencies:
rollup: ^2.14.0
rollup: ^2.14.0||^3.0.0||^4.0.0
tslib: "*"
typescript: ">=3.4.0"
checksum: 05b875a81b2e40219727d60fadc62ab362a8fd57dcd356066dfbe40f880744a305083bafb66488e238182ec9ade415857795c56e4ea76b2589c1fa1535874222
typescript: ">=3.7.0"
peerDependenciesMeta:
rollup:
optional: true
tslib:
optional: true
checksum: 5347cd73ac28d4cf2401a3e689864a1a0df8f3ae029abd9c38525cbc84bcfa16c3a32a0ac5698dac65ec531ba7cf8332e14f5fc7f8fa501193da23320a134c5c
languageName: node
linkType: hard

"@rollup/pluginutils@npm:^3.1.0":
version: 3.1.0
resolution: "@rollup/pluginutils@npm:3.1.0"
"@rollup/pluginutils@npm:^5.0.1, @rollup/pluginutils@npm:^5.1.0":
version: 5.1.0
resolution: "@rollup/pluginutils@npm:5.1.0"
dependencies:
"@types/estree": "npm:0.0.39"
estree-walker: "npm:^1.0.1"
picomatch: "npm:^2.2.2"
"@types/estree": "npm:^1.0.0"
estree-walker: "npm:^2.0.2"
picomatch: "npm:^2.3.1"
peerDependencies:
rollup: ^1.20.0||^2.0.0
checksum: 7151753160d15ba2b259461a6c25b3932150994ea52dba8fd3144f634c7647c2e56733d986e2c15de67c4d96a9ee7d6278efa6d2e626a7169898fd64adc0f90c
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
checksum: c7bed15711f942d6fdd3470fef4105b73991f99a478605e13d41888963330a6f9e32be37e6ddb13f012bc7673ff5e54f06f59fd47109436c1c513986a8a7612d
languageName: node
linkType: hard

Expand Down Expand Up @@ -1008,10 +1019,10 @@ __metadata:
languageName: node
linkType: hard

"@types/estree@npm:0.0.39":
version: 0.0.39
resolution: "@types/estree@npm:0.0.39"
checksum: f0af6c95ac1988c4827964bd9d3b51d24da442e2188943f6dfcb1e1559103d5d024d564b2e9d3f84c53714a02a0a7435c7441138eb63d9af5de4dfc66cdc0d92
"@types/estree@npm:^1.0.0":
version: 1.0.5
resolution: "@types/estree@npm:1.0.5"
checksum: b3b0e334288ddb407c7b3357ca67dbee75ee22db242ca7c56fe27db4e1a31989cb8af48a84dd401deb787fe10cc6b2ab1ee82dc4783be87ededbe3d53c79c70d
languageName: node
linkType: hard

Expand Down Expand Up @@ -1103,12 +1114,10 @@ __metadata:
languageName: node
linkType: hard

"@types/resolve@npm:1.17.1":
version: 1.17.1
resolution: "@types/resolve@npm:1.17.1"
dependencies:
"@types/node": "npm:*"
checksum: 6eeb9c27d99bf4b393bf168d43208f63e78cefca5644662a0bdb2bdbf8352386f4f3aca66add138fc41bce5f66fd48a0de430a1473f11b612fbed0375ae78031
"@types/resolve@npm:1.20.2":
version: 1.20.2
resolution: "@types/resolve@npm:1.20.2"
checksum: c5b7e1770feb5ccfb6802f6ad82a7b0d50874c99331e0c9b259e415e55a38d7a86ad0901c57665d93f75938be2a6a0bc9aa06c9749192cadb2e4512800bbc6e6
languageName: node
linkType: hard

Expand Down Expand Up @@ -1846,10 +1855,10 @@ __metadata:
languageName: node
linkType: hard

"builtin-modules@npm:^3.1.0":
version: 3.1.0
resolution: "builtin-modules@npm:3.1.0"
checksum: e81ebedafd94bca9ee8aac68aa616e4f91a539b9f320de4bfb5694483ea012c86e0438f77f49e343ae47901b5a5ae400c1142b18d438c852b675bd4e93b65ebf
"builtin-modules@npm:^3.3.0":
version: 3.3.0
resolution: "builtin-modules@npm:3.3.0"
checksum: 2cb3448b4f7306dc853632a4fcddc95e8d4e4b9868c139400027b71938fc6806d4ff44007deffb362ac85724bd40c2c6452fb6a0aa4531650eeddb98d8e5ee8a
languageName: node
linkType: hard

Expand Down Expand Up @@ -1997,8 +2006,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "clipanion@workspace:."
dependencies:
"@rollup/plugin-node-resolve": "npm:^10.0.0"
"@rollup/plugin-typescript": "npm:^6.1.0"
"@rollup/plugin-node-resolve": "npm:^15.2.3"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@types/jest": "npm:^29.5.9"
"@types/lodash": "npm:^4.14.179"
"@types/node": "npm:^14.0.13"
Expand All @@ -2019,7 +2028,7 @@ __metadata:
ts-node: "npm:^8.10.2"
tslib: "npm:^2.0.0"
typanion: "npm:^3.8.0"
typescript: "npm:^4.8.4"
typescript: "npm:^5.3.3"
peerDependencies:
typanion: "*"
languageName: unknown
Expand Down Expand Up @@ -2642,10 +2651,10 @@ __metadata:
languageName: node
linkType: hard

"estree-walker@npm:^1.0.1":
version: 1.0.1
resolution: "estree-walker@npm:1.0.1"
checksum: fa9e5f8c1bbe8d01e314c0f03067b64a4f22d4c58410fc5237060d0c15b81e58c23921c41acc60abbdab490f1fdfcbd6408ede2d03ca704454272e0244d61a55
"estree-walker@npm:^2.0.2":
version: 2.0.2
resolution: "estree-walker@npm:2.0.2"
checksum: 53a6c54e2019b8c914dc395890153ffdc2322781acf4bd7d1a32d7aedc1710807bdcd866ac133903d5629ec601fbb50abe8c2e5553c7f5a0afdd9b6af6c945af
languageName: node
linkType: hard

Expand Down Expand Up @@ -3347,6 +3356,15 @@ __metadata:
languageName: node
linkType: hard

"is-builtin-module@npm:^3.2.1":
version: 3.2.1
resolution: "is-builtin-module@npm:3.2.1"
dependencies:
builtin-modules: "npm:^3.3.0"
checksum: 5a66937a03f3b18803381518f0ef679752ac18cdb7dd53b5e23ee8df8d440558737bd8dcc04d2aae555909d2ecb4a81b5c0d334d119402584b61e6a003e31af1
languageName: node
linkType: hard

"is-callable@npm:^1.1.4, is-callable@npm:^1.1.5, is-callable@npm:^1.2.2":
version: 1.2.2
resolution: "is-callable@npm:1.2.2"
Expand Down Expand Up @@ -4825,14 +4843,14 @@ __metadata:
languageName: node
linkType: hard

"picomatch@npm:^2.0.4, picomatch@npm:^2.0.5, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2":
"picomatch@npm:^2.0.4, picomatch@npm:^2.0.5, picomatch@npm:^2.2.1":
version: 2.2.2
resolution: "picomatch@npm:2.2.2"
checksum: 0fa37cfc2ceaf7cc1021ec1936841351a2fcbcfbb50540994a4531c77ac613dd78ef9d2ee93b1afc18c02642a9a51e5115c728427fc1f1df2b5d231b720569f0
languageName: node
linkType: hard

"picomatch@npm:^2.2.3":
"picomatch@npm:^2.2.3, picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
checksum: 26c02b8d06f03206fc2ab8d16f19960f2ff9e81a658f831ecb656d8f17d9edc799e8364b1f4a7873e89d9702dff96204be0fa26fe4181f6843f040f819dac4be
Expand Down Expand Up @@ -5124,7 +5142,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@npm:^1.17.0, resolve@npm:^1.18.1":
"resolve@npm:^1.18.1":
version: 1.19.0
resolution: "resolve@npm:1.19.0"
dependencies:
Expand All @@ -5134,7 +5152,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@npm:^1.20.0":
"resolve@npm:^1.20.0, resolve@npm:^1.22.1":
version: 1.22.8
resolution: "resolve@npm:1.22.8"
dependencies:
Expand All @@ -5147,7 +5165,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@patch:resolve@npm%3A^1.17.0#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.18.1#optional!builtin<compat/resolve>":
"resolve@patch:resolve@npm%3A^1.18.1#optional!builtin<compat/resolve>":
version: 1.19.0
resolution: "resolve@patch:resolve@npm%3A1.19.0#optional!builtin<compat/resolve>::version=1.19.0&hash=c3c19d"
dependencies:
Expand All @@ -5157,7 +5175,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@patch:resolve@npm%3A^1.20.0#optional!builtin<compat/resolve>":
"resolve@patch:resolve@npm%3A^1.20.0#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin<compat/resolve>":
version: 1.22.8
resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin<compat/resolve>::version=1.22.8&hash=c3c19d"
dependencies:
Expand Down Expand Up @@ -5870,23 +5888,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.8.4":
version: 4.8.4
resolution: "typescript@npm:4.8.4"
"typescript@npm:^5.3.3":
version: 5.3.3
resolution: "typescript@npm:5.3.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 663bf455b21ac024e719bb8c6a07bcaaa027a9943abfb58a694b59789e7d08578badb5556170267ad480e31786b8b4c8ab3c9c0e597d3b8df39af800e43c6ed5
checksum: e33cef99d82573624fc0f854a2980322714986bc35b9cb4d1ce736ed182aeab78e2cb32b385efa493b2a976ef52c53e20d6c6918312353a91850e2b76f1ea44f
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^4.8.4#optional!builtin<compat/typescript>":
version: 4.8.4
resolution: "typescript@patch:typescript@npm%3A4.8.4#optional!builtin<compat/typescript>::version=4.8.4&hash=1a91c8"
"typescript@patch:typescript@npm%3A^5.3.3#optional!builtin<compat/typescript>":
version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: eecab597a5a8c6e7f14804f1447cfce02e214e32c02efcfe5219c94290e3d572490e8a0d8033fd075ac429d35babf85182541a50c50bfb0c21df33c59fb9bf82
checksum: 1d0a5f4ce496c42caa9a30e659c467c5686eae15d54b027ee7866744952547f1be1262f2d40de911618c242b510029d51d43ff605dba8fb740ec85ca2d3f9500
languageName: node
linkType: hard

Expand Down

0 comments on commit aea3797

Please sign in to comment.