Skip to content

Commit ee266c1

Browse files
author
Marc MacLeod
committed
fix: package deps
BREAKING CHANGE Updates deps and removes the optional dependencies. Package users are now expected to add those deps if they use those plugins.
1 parent c033133 commit ee266c1

File tree

5 files changed

+1465
-824
lines changed

5 files changed

+1465
-824
lines changed

package.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"scripts": {
2727
"build": "sl-scripts build",
28-
"build.docs": "sl-scripts build:tsdoc",
28+
"build.docs": "sl-scripts build:typedoc",
2929
"commit": "git-cz",
3030
"lint": "sl-scripts lint",
3131
"lint.fix": "yarn lint --fix",
@@ -38,21 +38,17 @@
3838
"test.watch": "yarn test --watch",
3939
"postbuild": "cp src/index.html dist/index.html"
4040
},
41-
"optionalDependencies": {
42-
"browserfs": "*",
43-
"monaco-editor": "*"
44-
},
4541
"dependencies": {
46-
"@babel/core": "7.1.x",
42+
"@babel/core": "7.2.x",
4743
"@types/history": "4.7.x",
48-
"@types/webpack-chain": "4.8.x",
44+
"@types/webpack-chain": "5.0.x",
4945
"babel-loader": "8.0.x",
5046
"cache-loader": "1.2.x",
5147
"clean-webpack-plugin": "1.0.x",
5248
"copy-webpack-plugin": "4.6.x",
5349
"cross-env": "5.2.x",
54-
"css-loader": "1.0.x",
55-
"fork-ts-checker-webpack-plugin": "0.4.x",
50+
"css-loader": "2.0.x",
51+
"fork-ts-checker-webpack-plugin": "0.5.x",
5652
"html-webpack-plugin": "3.2.x",
5753
"monaco-editor-webpack-plugin": "1.7.0",
5854
"style-loader": "0.23.x",
@@ -61,7 +57,7 @@
6157
"terser-webpack-plugin": "1.1.x",
6258
"ts-loader": "5.3.x",
6359
"tslint": "5.x.x",
64-
"webpack": "4.25.x",
60+
"webpack": "4.27.x",
6561
"webpack-bugsnag-plugins": "1.2.x",
6662
"webpack-bundle-analyzer": "3.0.x",
6763
"webpack-chain": "5.0.x",
@@ -71,8 +67,10 @@
7167
"worker-loader": "2.0.x"
7268
},
7369
"devDependencies": {
74-
"@stoplight/scripts": "1.2.1",
75-
"typescript": "3.1.6"
70+
"@stoplight/scripts": "3.1.1",
71+
"browserfs": "*",
72+
"monaco-editor": "*",
73+
"typescript": "3.2.2"
7674
},
7775
"lint-staged": {
7876
"*.ts": [

tsconfig.build.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This config is used by `sl-scripts build` and `sl-scripts build.docs`
2+
{
3+
"extends": "./tsconfig.json",
4+
5+
// NOTE: must only include one element, otherwise build process into dist folder ends up with incorrect structure
6+
"include": ["src"],
7+
8+
// Ignore dev folders like __tests__ and __stories__ when building for distribution
9+
"exclude": ["**/__*__/**"],
10+
11+
"compilerOptions": {
12+
"outDir": "dist",
13+
"moduleResolution": "node"
14+
}
15+
}

tsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"extends": "./node_modules/@stoplight/scripts/tsconfig.json",
3-
"include": ["src"],
4-
"compilerOptions": {
5-
"outDir": "dist"
6-
}
2+
"extends": "@stoplight/scripts/tsconfig.json",
3+
4+
// target all ts files
5+
"include": ["src"]
76
}

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ["./node_modules/@stoplight/scripts/tslint.json"]
2+
"extends": ["@stoplight/scripts/tslint.json"]
33
}

0 commit comments

Comments
 (0)