Skip to content

Commit 8342ea8

Browse files
author
sw-yx
committed
upgrade tsdx version
1 parent 8cd9c51 commit 8342ea8

File tree

4 files changed

+184
-331
lines changed

4 files changed

+184
-331
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"test": "tsdx test",
1717
"version": "tsdx build && auto-changelog -p --template keepachangelog && git add .",
1818
"prepublishOnly": "git push && git push --tags && gh-release",
19-
"postinstall": "patch-package"
19+
"swyxpostinstall": "patch-package"
2020
},
2121
"devDependencies": {
2222
"@types/jest": "^24.0.11",
@@ -30,7 +30,7 @@
3030
"patch-package": "^6.1.2",
3131
"postinstall-postinstall": "^2.0.0",
3232
"semantic-release": "^15.13.3",
33-
"tsdx": "^0.3.4",
33+
"tsdx": "^0.4.1",
3434
"typescript": "^3.4.4"
3535
},
3636
"peerDependencies": {
@@ -52,4 +52,4 @@
5252
"type": "git",
5353
"url": "https://github.com/sw-yx/react-netlify-identity-widget.git"
5454
}
55-
}
55+
}

patches/tsdx+0.3.4.patch

-243
This file was deleted.

patches/tsdx+0.4.1.patch

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
diff --git a/node_modules/tsdx/dist/.progress-estimator/5e1a1bc72a1c85f144986cb7aa3d91e6fd42e1c4 b/node_modules/tsdx/dist/.progress-estimator/5e1a1bc72a1c85f144986cb7aa3d91e6fd42e1c4
2+
index 3bcf40b..b0e3524 100644
3+
--- a/node_modules/tsdx/dist/.progress-estimator/5e1a1bc72a1c85f144986cb7aa3d91e6fd42e1c4
4+
+++ b/node_modules/tsdx/dist/.progress-estimator/5e1a1bc72a1c85f144986cb7aa3d91e6fd42e1c4
5+
@@ -1,5 +1,12 @@
6+
1063
7+
1221
8+
+15096
9+
+11034
10+
+5894
11+
+5488
12+
+9926
13+
+3208
14+
+8393
15+
+19165
16+
1229
17+
1176
18+
\ No newline at end of file
19+
-1250
20+
\ No newline at end of file
21+
diff --git a/node_modules/tsdx/dist/.progress-estimator/9a3492e73be0eb3875889eb84075f018f90b4f72 b/node_modules/tsdx/dist/.progress-estimator/9a3492e73be0eb3875889eb84075f018f90b4f72
22+
index c912aff..2f21f21 100644
23+
--- a/node_modules/tsdx/dist/.progress-estimator/9a3492e73be0eb3875889eb84075f018f90b4f72
24+
+++ b/node_modules/tsdx/dist/.progress-estimator/9a3492e73be0eb3875889eb84075f018f90b4f72
25+
@@ -1,5 +1,12 @@
26+
1973
27+
2032
28+
+3131
29+
+3763
30+
+3766
31+
+3102
32+
+3044
33+
+3216
34+
+3116
35+
+3078
36+
2737
37+
2627
38+
\ No newline at end of file
39+
-3019
40+
\ No newline at end of file
41+
diff --git a/node_modules/tsdx/dist/createRollupConfig.js b/node_modules/tsdx/dist/createRollupConfig.js
42+
index 65b8da6..4931aad 100644
43+
--- a/node_modules/tsdx/dist/createRollupConfig.js
44+
+++ b/node_modules/tsdx/dist/createRollupConfig.js
45+
@@ -74,10 +74,10 @@ function createRollupConfig(format, env, opts) {
46+
].filter(Boolean),
47+
}),
48+
format === 'umd' &&
49+
- rollup_plugin_commonjs_1.default({
50+
- // use a regex to make sure to include eventual hoisted packages
51+
- include: /\/node_modules\//,
52+
- }),
53+
+ rollup_plugin_commonjs_1.default({
54+
+ // use a regex to make sure to include eventual hoisted packages
55+
+ include: /\/node_modules\//,
56+
+ }),
57+
rollup_plugin_json_1.default(),
58+
rollup_plugin_typescript2_1.default({
59+
typescript: require('typescript'),
60+
@@ -104,17 +104,18 @@ function createRollupConfig(format, env, opts) {
61+
printInfo: false,
62+
}),
63+
env === 'production' &&
64+
- rollup_plugin_terser_1.terser({
65+
- sourcemap: true,
66+
- output: { comments: false },
67+
- compress: {
68+
- keep_infinity: true,
69+
- pure_getters: true,
70+
- },
71+
- ecma: 5,
72+
- toplevel: format === 'es' || format === 'cjs',
73+
- warnings: true,
74+
- }),
75+
+ rollup_plugin_terser_1.terser({
76+
+ sourcemap: true,
77+
+ output: { comments: false },
78+
+ // compress: {
79+
+ // keep_infinity: true,
80+
+ // pure_getters: true,
81+
+ // },
82+
+ compress: false,
83+
+ ecma: 5,
84+
+ toplevel: format === 'es' || format === 'cjs',
85+
+ warnings: true,
86+
+ }),
87+
rollup_plugin_preserve_shebang_1.default({
88+
shebang,
89+
}),

0 commit comments

Comments
 (0)