Skip to content

Commit

Permalink
fix(rollup): check vue-template-compiler availability
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Feb 13, 2020
1 parent dafcf6d commit 22edff2
Show file tree
Hide file tree
Showing 8 changed files with 273 additions and 266 deletions.
8 changes: 5 additions & 3 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
},
"publish": {
"ignoreChanges": [
"**/test/**",
"**/.*",
"**/*.md",
"**/*.tsbuildinfo",
"**/tsconfig.json",
"package.json"
"**/coverage/**",
"**/dist/**",
"**/node_modules/**",
"**/test/**",
"**/tsconfig.json"
]
}
}
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"w:dev": "ts-node -T --files packages/webpack/src/cli"
},
"devDependencies": {
"@1stg/app-config": "^0.3.2",
"@1stg/lib-config": "^0.3.2",
"@1stg/tslint-config": "^0.7.2",
"@angular/common": "^9.0.0",
"@angular/compiler": "^9.0.0",
"@angular/compiler-cli": "^9.0.0",
"@angular/core": "^9.0.0",
"@angular/platform-browser": "^9.0.0",
"@angular/platform-browser-dynamic": "^9.0.0",
"@1stg/app-config": "^0.4.2",
"@1stg/lib-config": "^0.4.2",
"@1stg/tslint-config": "^0.8.2",
"@angular/common": "^9.0.1",
"@angular/compiler": "^9.0.1",
"@angular/compiler-cli": "^9.0.1",
"@angular/core": "^9.0.1",
"@angular/platform-browser": "^9.0.1",
"@angular/platform-browser-dynamic": "^9.0.1",
"@babel/types": "^7.8.3",
"@d-ts/core": "^0.7.2",
"@d-ts/rollup-plugins": "^0.3.2",
Expand All @@ -69,15 +69,15 @@
"@types/lodash": "^4.14.149",
"@types/micromatch": "^4.0.1",
"@types/mini-css-extract-plugin": "^0.9.0",
"@types/node": "^13.7.0",
"@types/node": "^13.7.1",
"@types/postcss-load-config": "^2.0.1",
"@types/prettier": "^1.19.0",
"@types/react": "^16.9.19",
"@types/react-dom": "^16.9.5",
"@types/resolve": "^1.14.0",
"@types/rollup-plugin-postcss": "^2.0.0",
"@types/rollup__plugin-url": "npm:@types/rollup-plugin-url",
"@types/webpack": "^4.41.5",
"@types/webpack": "^4.41.6",
"@types/webpack-dev-server": "^3.10.0",
"@types/webpack-env": "^1.15.1",
"@types/workbox-webpack-plugin": "^4.1.0",
Expand All @@ -90,10 +90,10 @@
"react-dom": "^16.12.0",
"react-is": "^16.12.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.1",
"rimraf": "^3.0.2",
"rxjs": "^6.5.4",
"serve": "^11.3.0",
"svelte": "^3.18.1",
"svelte": "^3.18.2",
"ts-jest": "^25.2.0",
"ts-node": "^8.6.2",
"tslint": "^6.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/rollup/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
__PROD__,
arrayify,
identify,
isPkgAvailable,
isTsAvailable,
monorepoPkgs,
tryExtensions,
Expand Down Expand Up @@ -372,9 +373,9 @@ ConfigOptions = {}): RollupOptions[] => {
json(),
url({ include: IMAGE_EXTENSIONS.map(ext => `**/*${ext}`) }),
postcss(postcssOptions),
vue(vueOptions),
].concat(
[
isPkgAvailable('vue-template-compiler') && vue(vueOptions),
// __DEV__ and __PROD__ will always be replaced while `process.env.NODE_ENV` will be preserved except on production
define &&
replace(
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@pkgr/webpack": "^0.5.1"
},
"dependencies": {
"@ngtools/webpack": "^9.0.1"
"@ngtools/webpack": "^9.0.2"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT",
"peerDependencies": {
"@pkgr/webpack": "^0.5.1",
"svelte": ">=3.0.0"
"svelte": ">=3.18.2"
},
"dependencies": {
"svelte-loader": "^2.13.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"vue-loader": "^15.8.3",
"vue-style-loader": "^4.1.2",
"vue-svg-loader": "^0.15.0"
"vue-svg-loader": "^0.16.0"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"index.pug"
],
"dependencies": {
"@1stg/babel-preset": "^0.11.2",
"@1stg/postcss-config": "^0.7.2",
"@1stg/babel-preset": "^0.12.2",
"@1stg/postcss-config": "^0.8.2",
"@babel/core": "^7.8.4",
"@pkgr/es-modules": "^0.3.0",
"@pkgr/umd-globals": "^0.4.0",
Expand All @@ -41,7 +41,7 @@
"html-webpack-plugin": "^3.2.0",
"jsox": "^1.1.121",
"lazy-compile-webpack-plugin": "^0.1.11",
"less": "^3.10.3",
"less": "^3.11.1",
"less-loader": "^5.0.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.9.0",
Expand All @@ -61,7 +61,7 @@
"tsconfig-paths-webpack-plugin": "^3.2.0",
"tslib": "^1.10.0",
"url-loader": "^3.0.0",
"webpack": "^4.41.5",
"webpack": "^4.41.6",
"webpack-dev-server": "^3.10.3",
"workbox-webpack-plugin": "^5.0.0"
},
Expand Down
Loading

0 comments on commit 22edff2

Please sign in to comment.