Skip to content

Commit

Permalink
fix: package deps
Browse files Browse the repository at this point in the history
BREAKING CHANGE Updates deps and removes the optional dependencies. Package users are now expected to add those deps if they use those plugins.
  • Loading branch information
Marc MacLeod committed Dec 13, 2018
1 parent c033133 commit ee266c1
Show file tree
Hide file tree
Showing 5 changed files with 1,465 additions and 824 deletions.
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"build": "sl-scripts build",
"build.docs": "sl-scripts build:tsdoc",
"build.docs": "sl-scripts build:typedoc",
"commit": "git-cz",
"lint": "sl-scripts lint",
"lint.fix": "yarn lint --fix",
Expand All @@ -38,21 +38,17 @@
"test.watch": "yarn test --watch",
"postbuild": "cp src/index.html dist/index.html"
},
"optionalDependencies": {
"browserfs": "*",
"monaco-editor": "*"
},
"dependencies": {
"@babel/core": "7.1.x",
"@babel/core": "7.2.x",
"@types/history": "4.7.x",
"@types/webpack-chain": "4.8.x",
"@types/webpack-chain": "5.0.x",
"babel-loader": "8.0.x",
"cache-loader": "1.2.x",
"clean-webpack-plugin": "1.0.x",
"copy-webpack-plugin": "4.6.x",
"cross-env": "5.2.x",
"css-loader": "1.0.x",
"fork-ts-checker-webpack-plugin": "0.4.x",
"css-loader": "2.0.x",
"fork-ts-checker-webpack-plugin": "0.5.x",
"html-webpack-plugin": "3.2.x",
"monaco-editor-webpack-plugin": "1.7.0",
"style-loader": "0.23.x",
Expand All @@ -61,7 +57,7 @@
"terser-webpack-plugin": "1.1.x",
"ts-loader": "5.3.x",
"tslint": "5.x.x",
"webpack": "4.25.x",
"webpack": "4.27.x",
"webpack-bugsnag-plugins": "1.2.x",
"webpack-bundle-analyzer": "3.0.x",
"webpack-chain": "5.0.x",
Expand All @@ -71,8 +67,10 @@
"worker-loader": "2.0.x"
},
"devDependencies": {
"@stoplight/scripts": "1.2.1",
"typescript": "3.1.6"
"@stoplight/scripts": "3.1.1",
"browserfs": "*",
"monaco-editor": "*",
"typescript": "3.2.2"
},
"lint-staged": {
"*.ts": [
Expand Down
15 changes: 15 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This config is used by `sl-scripts build` and `sl-scripts build.docs`
{
"extends": "./tsconfig.json",

// NOTE: must only include one element, otherwise build process into dist folder ends up with incorrect structure
"include": ["src"],

// Ignore dev folders like __tests__ and __stories__ when building for distribution
"exclude": ["**/__*__/**"],

"compilerOptions": {
"outDir": "dist",
"moduleResolution": "node"
}
}
9 changes: 4 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./node_modules/@stoplight/scripts/tsconfig.json",
"include": ["src"],
"compilerOptions": {
"outDir": "dist"
}
"extends": "@stoplight/scripts/tsconfig.json",

// target all ts files
"include": ["src"]
}
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["./node_modules/@stoplight/scripts/tslint.json"]
"extends": ["@stoplight/scripts/tslint.json"]
}
Loading

0 comments on commit ee266c1

Please sign in to comment.