Skip to content

Commit

Permalink
fix use tslib
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jan 7, 2021
1 parent a7af2f9 commit 29b4aa8
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 36 deletions.
7 changes: 3 additions & 4 deletions packages/xarc-react-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"license": "Apache-2.0",
"peerDependencies": {
"react": "*",
"react-dom": "*",
"tslib": "*"
"react-dom": "*"
},
"dependencies": {
"@xarc/subapp": "^0.1.0",
"react-redux": ">= 7",
"redux": ">= 4"
"redux": ">= 4",
"tslib": "^2.1.0"
},
"fyn": {
"dependencies": {
Expand Down Expand Up @@ -65,7 +65,6 @@
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"tslib": "^2.0.3",
"typedoc": "^0.19.2",
"typescript": "^4.1.3"
},
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-redux/tsconfig.browser.es2x.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018", "DOM"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2019",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-redux/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018", "DOM"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-redux/tsconfig.node.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-redux/tsconfig.node.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
9 changes: 3 additions & 6 deletions packages/xarc-react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"keywords": [],
"author": "WalmartLabs GTP.js team",
"license": "Apache-2.0",
"peerDependencies": {
"tslib": "*"
},
"fyn": {
"dependencies": {
"@xarc/subapp": "../xarc-subapp"
Expand All @@ -34,7 +31,8 @@
"@xarc/subapp": "^0.1.0",
"history": "^5.0.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0"
"react-router-dom": "^5.2.0",
"tslib": "^2.1.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
Expand All @@ -47,7 +45,7 @@
"@types/sinon-chai": "^3.2.5",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"@xarc/module-dev": "^3.0.1",
"@xarc/module-dev": "^3.0.2",
"babel-eslint": "^10.1.0",
"chai": "^4.2.0",
"eslint": "^7.16.0",
Expand All @@ -64,7 +62,6 @@
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"tslib": "^2.0.3",
"typedoc": "^0.19.2",
"typescript": "^4.1.3"
},
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-router/tsconfig.browser.es2x.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018", "DOM"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2019",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-router/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"lib": ["es2018"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-router/tsconfig.node.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018", "DOM"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react-router/tsconfig.node.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018", "DOM"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
11 changes: 4 additions & 7 deletions packages/xarc-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
"@xarc/subapp": "^0.1.0",
"@xarc/tag-renderer": "^1.0.3",
"react": ">= 16",
"react-dom": ">= 16"
},
"peerDependencies": {
"tslib": "^2.0.3"
"react-dom": ">= 16",
"tslib": "^2.1.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
Expand All @@ -43,7 +41,7 @@
"@types/sinon-chai": "^3.2.5",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"@xarc/module-dev": "^3.0.1",
"@xarc/module-dev": "^3.0.2",
"babel-eslint": "^10.1.0",
"chai": "^4.2.0",
"eslint": "^7.16.0",
Expand All @@ -56,8 +54,7 @@
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"tslib": "^2.0.3",
"typedoc": "^0.19.2",
"typedoc": "^0.20.13",
"typescript": "^4.1.3"
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react/tsconfig.browser.es2x.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018", "DOM"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2019",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
16 changes: 4 additions & 12 deletions packages/xarc-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"compilerOptions": {
"outDir": "dist-node-cjs",
"lib": [
"es2018"
],
"lib": ["es2018"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
"declaration": true,
"types": [
"node",
"react",
"react-dom"
],
"types": ["node", "react", "react-dom"],
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"alwaysStrict": true,
Expand All @@ -23,8 +18,5 @@
"jsxFactory": "createElement",
"moduleResolution": "Node"
},
"include": [
"src/node",
"src/common"
]
"include": ["src/node", "src/common"]
}
1 change: 1 addition & 0 deletions packages/xarc-react/tsconfig.node.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-react/tsconfig.node.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["es2018"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
11 changes: 4 additions & 7 deletions packages/xarc-subapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"lodash": "^4.17.20"
},
"peerDependencies": {
"tslib": "^2.0.3"
"lodash": "^4.17.20",
"tslib": "^2.1.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
Expand All @@ -54,7 +52,7 @@
"@types/sinon-chai": "^3.2.5",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"@xarc/module-dev": "^3.0.1",
"@xarc/module-dev": "^3.0.2",
"babel-eslint": "^10.1.0",
"babel-plugin-transform-remove-strict-mode": "^0.0.2",
"babel-preset-minify": "^0.5.1",
Expand All @@ -69,8 +67,7 @@
"sinon-chai": "^3.5.0",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"tslib": "^2.0.3",
"typedoc": "^0.19.2",
"typedoc": "^0.20.13",
"typescript": "^4.1.3",
"xsh": "^0.4.5"
},
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-subapp/tsconfig.browser.es2x.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lib": ["es2018", "DOM"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2019",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-subapp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lib": ["es2018", "DOM"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-subapp/tsconfig.node.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lib": ["es2018", "DOM"],
"module": "CommonJS",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-subapp/tsconfig.node.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lib": ["es2018", "DOM"],
"module": "ES2020",
"esModuleInterop": false,
"importHelpers": true,
"target": "ES2018",
"preserveConstEnums": true,
"sourceMap": true,
Expand Down

0 comments on commit 29b4aa8

Please sign in to comment.