Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: dependency issues in typescript and container plugin (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz authored Aug 26, 2020
1 parent d23b863 commit 8a4c390
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/vuepress-plugin-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"lint": "eslint --ext .ts src test"
},
"dependencies": {
"markdown-it-container": "^2.0.0"
"markdown-it-container": "^2.0.0",
"@vuepress/shared-utils": "^1.2.0"
}
}
4 changes: 4 additions & 0 deletions packages/vuepress-plugin-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@
"lint": "eslint --ext .ts,.vue src test"
},
"dependencies": {
"cache-loader": "^3.0.0",
"ts-loader": "^7.0.3"
},
"devDependencies": {
"vue-class-component": "^7.1.0",
"vue-property-decorator": "^8.3.0"
},
"peerDependencies": {
"typescript": "*"
}
}
4 changes: 2 additions & 2 deletions packages/vuepress-plugin-typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ const TypescriptPlugin: Plugin<TypescriptPluginOptions> = (
.rule('ts')
.test(/\.ts$/)
.use('cache-loader')
.loader('cache-loader')
.loader(require.resolve('cache-loader'))
.options({
cacheDirectory,
cacheIdentifier: finalCacheIdentifier,
})
.end()
.use('ts-loader')
.loader('ts-loader')
.loader(require.resolve('ts-loader'))
.options({
appendTsSuffixTo: [/\.vue$/, /\.md$/],
compilerOptions: {
Expand Down

0 comments on commit 8a4c390

Please sign in to comment.