Skip to content

Commit

Permalink
use old ts plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz committed Dec 2, 2023
1 parent 58509ef commit 76fd60d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 146 deletions.
4 changes: 2 additions & 2 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@
"mobx": "^6.12.0",
"mobx-v4": "npm:mobx@^4.15.7",
"mobx-v5": "npm:mobx@^5.15.7",
"rollup-plugin-typescript2": "^0.36.0",
"shx": "^0.3.4",
"spec.ts": "^1.1.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.25.4",
"typescript": "^5.3.2",
"vite": "^5.0.4",
"vite-plugin-checker": "^0.6.2"
"vite": "^5.0.4"
},
"dependencies": {
"fast-deep-equal": "^3.1.3",
Expand Down
12 changes: 8 additions & 4 deletions packages/lib/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path"
import { checker } from "vite-plugin-checker"
import typescript2 from "rollup-plugin-typescript2"
import { defineConfig } from "vite"

const resolvePath = (str: string) => path.resolve(__dirname, str)
Expand Down Expand Up @@ -33,8 +33,12 @@ export default defineConfig({
},
},
plugins: [
checker({
typescript: true,
}),
{
...typescript2({
useTsconfigDeclarationDir: true,
}),
apply: "build",
enforce: "pre",
},
],
})
166 changes: 26 additions & 140 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5244,7 +5244,7 @@ __metadata:
languageName: node
linkType: hard

"@rollup/pluginutils@npm:^4.0.0":
"@rollup/pluginutils@npm:^4.0.0, @rollup/pluginutils@npm:^4.1.2":
version: 4.2.1
resolution: "@rollup/pluginutils@npm:4.2.1"
dependencies:
Expand Down Expand Up @@ -7186,7 +7186,7 @@ __metadata:
languageName: node
linkType: hard

"ansi-escapes@npm:^4.2.1, ansi-escapes@npm:^4.3.0, ansi-escapes@npm:^4.3.1":
"ansi-escapes@npm:^4.2.1, ansi-escapes@npm:^4.3.1":
version: 4.3.2
resolution: "ansi-escapes@npm:4.3.2"
dependencies:
Expand Down Expand Up @@ -8574,7 +8574,7 @@ __metadata:
languageName: node
linkType: hard

"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.1, chalk@npm:^4.1.2":
"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.2":
version: 4.1.2
resolution: "chalk@npm:4.1.2"
dependencies:
Expand Down Expand Up @@ -8655,7 +8655,7 @@ __metadata:
languageName: node
linkType: hard

"chokidar@npm:3.5.3, chokidar@npm:^3.4.2, chokidar@npm:^3.5.1, chokidar@npm:^3.5.3":
"chokidar@npm:3.5.3, chokidar@npm:^3.4.2, chokidar@npm:^3.5.3":
version: 3.5.3
resolution: "chokidar@npm:3.5.3"
dependencies:
Expand Down Expand Up @@ -9149,7 +9149,7 @@ __metadata:
languageName: node
linkType: hard

"commander@npm:^8.0.0, commander@npm:^8.3.0":
"commander@npm:^8.3.0":
version: 8.3.0
resolution: "commander@npm:8.3.0"
checksum: 8b043bb8322ea1c39664a1598a95e0495bfe4ca2fad0d84a92d7d1d8d213e2a155b441d2470c8e08de7c4a28cf2bc6e169211c49e1b21d9f7edc6ae4d9356060
Expand Down Expand Up @@ -11736,7 +11736,7 @@ __metadata:
languageName: node
linkType: hard

"fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.7, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.2":
"fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.2":
version: 3.3.2
resolution: "fast-glob@npm:3.3.2"
dependencies:
Expand Down Expand Up @@ -12125,7 +12125,7 @@ __metadata:
languageName: node
linkType: hard

"find-cache-dir@npm:^3.3.1":
"find-cache-dir@npm:^3.3.1, find-cache-dir@npm:^3.3.2":
version: 3.3.2
resolution: "find-cache-dir@npm:3.3.2"
dependencies:
Expand Down Expand Up @@ -12412,17 +12412,6 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^11.1.0":
version: 11.2.0
resolution: "fs-extra@npm:11.2.0"
dependencies:
graceful-fs: "npm:^4.2.0"
jsonfile: "npm:^6.0.1"
universalify: "npm:^2.0.0"
checksum: d77a9a9efe60532d2e790e938c81a02c1b24904ef7a3efb3990b835514465ba720e99a6ea56fd5e2db53b4695319b644d76d5a0e9988a2beef80aa7b1da63398
languageName: node
linkType: hard

"fs-extra@npm:^9.0.0":
version: 9.1.0
resolution: "fs-extra@npm:9.1.0"
Expand Down Expand Up @@ -15740,13 +15729,6 @@ __metadata:
languageName: node
linkType: hard

"lodash.pick@npm:^4.4.0":
version: 4.4.0
resolution: "lodash.pick@npm:4.4.0"
checksum: a04c460b95d1aaa44e9513d1dacf72ea74d838da843e45831de9de64c303f13cdde1859702a6f4dcef417816898ffd47c6ae0614c957ac70245bed2809b8d2e2
languageName: node
linkType: hard

"lodash.transform@npm:^4.6.0":
version: 4.6.0
resolution: "lodash.transform@npm:4.6.0"
Expand Down Expand Up @@ -16525,6 +16507,7 @@ __metadata:
mobx: "npm:^6.12.0"
mobx-v4: "npm:mobx@^4.15.7"
mobx-v5: "npm:mobx@^5.15.7"
rollup-plugin-typescript2: "npm:^0.36.0"
shx: "npm:^0.3.4"
spec.ts: "npm:^1.1.3"
ts-jest: "npm:^29.1.1"
Expand All @@ -16534,7 +16517,6 @@ __metadata:
typedoc: "npm:^0.25.4"
typescript: "npm:^5.3.2"
vite: "npm:^5.0.4"
vite-plugin-checker: "npm:^0.6.2"
peerDependencies:
mobx: ^6.0.0 || ^5.0.0 || ^4.0.0
languageName: unknown
Expand Down Expand Up @@ -20060,6 +20042,22 @@ __metadata:
languageName: node
linkType: hard

"rollup-plugin-typescript2@npm:^0.36.0":
version: 0.36.0
resolution: "rollup-plugin-typescript2@npm:0.36.0"
dependencies:
"@rollup/pluginutils": "npm:^4.1.2"
find-cache-dir: "npm:^3.3.2"
fs-extra: "npm:^10.0.0"
semver: "npm:^7.5.4"
tslib: "npm:^2.6.2"
peerDependencies:
rollup: ">=1.26.3"
typescript: ">=2.4.0"
checksum: 3c8d17cd852ded36eaad2759caf170f90e091d8f86ff7b016d1823bc8b507b8f689156bcccda348fc88471681dc79cc9eb13ddb09a4dfcf0d07ac9a249e2d79b
languageName: node
linkType: hard

"rollup@npm:^4.2.0":
version: 4.6.1
resolution: "rollup@npm:4.6.1"
Expand Down Expand Up @@ -20405,7 +20403,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:7.5.4, semver@npm:^7.0.0, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.0, semver@npm:^7.5.3, semver@npm:^7.5.4":
"semver@npm:7.5.4, semver@npm:^7.0.0, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.3, semver@npm:^7.5.4":
version: 7.5.4
resolution: "semver@npm:7.5.4"
dependencies:
Expand Down Expand Up @@ -21880,7 +21878,7 @@ __metadata:
languageName: node
linkType: hard

"tiny-invariant@npm:^1.0.2, tiny-invariant@npm:^1.1.0":
"tiny-invariant@npm:^1.0.2":
version: 1.3.1
resolution: "tiny-invariant@npm:1.3.1"
checksum: 5b87c1d52847d9452b60d0dcb77011b459044e0361ca8253bfe7b43d6288106e12af926adb709a6fc28900e3864349b91dad9a4ac93c39aa15f360b26c2ff4db
Expand Down Expand Up @@ -23163,58 +23161,6 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-checker@npm:^0.6.2":
version: 0.6.2
resolution: "vite-plugin-checker@npm:0.6.2"
dependencies:
"@babel/code-frame": "npm:^7.12.13"
ansi-escapes: "npm:^4.3.0"
chalk: "npm:^4.1.1"
chokidar: "npm:^3.5.1"
commander: "npm:^8.0.0"
fast-glob: "npm:^3.2.7"
fs-extra: "npm:^11.1.0"
lodash.debounce: "npm:^4.0.8"
lodash.pick: "npm:^4.4.0"
npm-run-path: "npm:^4.0.1"
semver: "npm:^7.5.0"
strip-ansi: "npm:^6.0.0"
tiny-invariant: "npm:^1.1.0"
vscode-languageclient: "npm:^7.0.0"
vscode-languageserver: "npm:^7.0.0"
vscode-languageserver-textdocument: "npm:^1.0.1"
vscode-uri: "npm:^3.0.2"
peerDependencies:
eslint: ">=7"
meow: ^9.0.0
optionator: ^0.9.1
stylelint: ">=13"
typescript: "*"
vite: ">=2.0.0"
vls: "*"
vti: "*"
vue-tsc: ">=1.3.9"
peerDependenciesMeta:
eslint:
optional: true
meow:
optional: true
optionator:
optional: true
stylelint:
optional: true
typescript:
optional: true
vls:
optional: true
vti:
optional: true
vue-tsc:
optional: true
checksum: 8c991c63b61e52fc69a22033aa34c6cb698d6af7dd7505a9fecb62c6e8486bc6f9667c23f5ad6f7289d9d2780bdb4711740433a5cabc27c4c7d763d028d54b2a
languageName: node
linkType: hard

"vite@npm:^5.0.4":
version: 5.0.4
resolution: "vite@npm:5.0.4"
Expand Down Expand Up @@ -23255,59 +23201,6 @@ __metadata:
languageName: node
linkType: hard

"vscode-jsonrpc@npm:6.0.0":
version: 6.0.0
resolution: "vscode-jsonrpc@npm:6.0.0"
checksum: 22c35873155a62e71c454ad71165683536361eaabc1f07af41cbfd83c4c3bbfe3b36b58faba2b059d8f20da61b645a8c687bdf449407196e0bdb0a080257ca69
languageName: node
linkType: hard

"vscode-languageclient@npm:^7.0.0":
version: 7.0.0
resolution: "vscode-languageclient@npm:7.0.0"
dependencies:
minimatch: "npm:^3.0.4"
semver: "npm:^7.3.4"
vscode-languageserver-protocol: "npm:3.16.0"
checksum: 3eabd90cb76159bcbabd0884c130a8bb9cd90a583c348730eee97e565cf939ea87e3033d7e58c94a3d8709fabf9d794e6316167bf7de1e7481882357dd02aa28
languageName: node
linkType: hard

"vscode-languageserver-protocol@npm:3.16.0":
version: 3.16.0
resolution: "vscode-languageserver-protocol@npm:3.16.0"
dependencies:
vscode-jsonrpc: "npm:6.0.0"
vscode-languageserver-types: "npm:3.16.0"
checksum: 6a1ca737d826a710271b36d72c0833dfc8f78c68416725173892195d04b358ee8eb1095d5edfb7a62c7ea01128c762b9463ee8b6b1949efe060a43fe621ea62a
languageName: node
linkType: hard

"vscode-languageserver-textdocument@npm:^1.0.1":
version: 1.0.11
resolution: "vscode-languageserver-textdocument@npm:1.0.11"
checksum: 1996a38e24571e05aa21dd4f46e0a6849e22301c9a66996762e77d9c6df3622de0bd31cd5742a0c0c47fb9dfd00b310ad08c44d08241873ea571edacd5238da6
languageName: node
linkType: hard

"vscode-languageserver-types@npm:3.16.0":
version: 3.16.0
resolution: "vscode-languageserver-types@npm:3.16.0"
checksum: cc1bd68a7fe94152849e434cfc6fd8471f5c17198057fc6c95814d4b1655ab2b76d577b5fcd0f1f2a5df0285f054c96b9698e6d33e8183846f152d6e7d3ecc97
languageName: node
linkType: hard

"vscode-languageserver@npm:^7.0.0":
version: 7.0.0
resolution: "vscode-languageserver@npm:7.0.0"
dependencies:
vscode-languageserver-protocol: "npm:3.16.0"
bin:
installServerIntoExtension: bin/installServerIntoExtension
checksum: a36f66ab2f43ff3a754ccca5030ac3ec73cf373ab3d4d65c1de59895198b3abb3760691ada71fd7837e7dbda1eb14526420b4b91fe562facabfc568a2e58a88a
languageName: node
linkType: hard

"vscode-oniguruma@npm:^1.7.0":
version: 1.7.0
resolution: "vscode-oniguruma@npm:1.7.0"
Expand All @@ -23322,13 +23215,6 @@ __metadata:
languageName: node
linkType: hard

"vscode-uri@npm:^3.0.2":
version: 3.0.8
resolution: "vscode-uri@npm:3.0.8"
checksum: f7f217f526bf109589969fe6e66b71e70b937de1385a1d7bb577ca3ee7c5e820d3856a86e9ff2fa9b7a0bc56a3dd8c3a9a557d3fedd7df414bc618d5e6b567f9
languageName: node
linkType: hard

"wait-on@npm:^6.0.1":
version: 6.0.1
resolution: "wait-on@npm:6.0.1"
Expand Down

0 comments on commit 76fd60d

Please sign in to comment.