Skip to content

Commit 1889514

Browse files
committed
chore: make package lightweight
1 parent b5f66c4 commit 1889514

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"dpdm": "^3.8.0",
7070
"glob-escape": "^0.0.2",
7171
"ignore": "^5.1.9",
72-
"ora": "^6.0.1",
72+
"ora": "^5.0",
7373
"prettier": "^2.5.1"
7474
},
7575
"scripts": {

webpack.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@ module.exports = (_, { mode }) => {
3737
},
3838
//Don't transpile & include modules except some ESM modules that does not work otherwise
3939
externals: []
40-
.concat(
41-
isStandaloneBuild
42-
? []
43-
: Object.keys(pgk.dependencies).filter((dep) => {
44-
const depPkg = require(`./node_modules/${dep}/package.json`)
45-
return depPkg.type !== 'module'
46-
})
47-
)
40+
.concat(isStandaloneBuild ? [] : Object.keys(pgk.dependencies))
4841
.reduce((map, dep) => ({
4942
...map,
5043
[dep]: `commonjs2 ${dep}`

yarn.lock

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,7 +2551,7 @@ cli-cursor@^4.0.0:
25512551
dependencies:
25522552
restore-cursor "^4.0.0"
25532553

2554-
cli-spinners@^2.5.0, cli-spinners@^2.6.0, cli-spinners@^2.6.1:
2554+
cli-spinners@^2.5.0, cli-spinners@^2.6.1:
25552555
version "2.6.1"
25562556
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d"
25572557
integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==
@@ -5136,7 +5136,7 @@ log-symbols@^4.1.0:
51365136
chalk "^4.1.0"
51375137
is-unicode-supported "^0.1.0"
51385138

5139-
log-symbols@^5.0.0, log-symbols@^5.1.0:
5139+
log-symbols@^5.1.0:
51405140
version "5.1.0"
51415141
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-5.1.0.tgz#a20e3b9a5f53fac6aeb8e2bb22c07cf2c8f16d93"
51425142
integrity sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==
@@ -5475,7 +5475,7 @@ ora@6.1.0:
54755475
strip-ansi "^7.0.1"
54765476
wcwidth "^1.0.1"
54775477

5478-
ora@^5.4.1:
5478+
ora@^5.0, ora@^5.4.1:
54795479
version "5.4.1"
54805480
resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18"
54815481
integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==
@@ -5490,21 +5490,6 @@ ora@^5.4.1:
54905490
strip-ansi "^6.0.0"
54915491
wcwidth "^1.0.1"
54925492

5493-
ora@^6.0.1:
5494-
version "6.0.1"
5495-
resolved "https://registry.yarnpkg.com/ora/-/ora-6.0.1.tgz#68caa9fd6c485a40d6f46c50a3940fa3df99c7f3"
5496-
integrity sha512-TDdKkKHdWE6jo/6pIa5U5AWcSVfpNRFJ8sdRJpioGNVPLAzZzHs/N+QhUfF7ZbyoC+rnDuNTKzeDJUbAza9g4g==
5497-
dependencies:
5498-
bl "^5.0.0"
5499-
chalk "^4.1.2"
5500-
cli-cursor "^4.0.0"
5501-
cli-spinners "^2.6.0"
5502-
is-interactive "^2.0.0"
5503-
is-unicode-supported "^1.1.0"
5504-
log-symbols "^5.0.0"
5505-
strip-ansi "^7.0.1"
5506-
wcwidth "^1.0.1"
5507-
55085493
os-name@5.0.1:
55095494
version "5.0.1"
55105495
resolved "https://registry.yarnpkg.com/os-name/-/os-name-5.0.1.tgz#acb4f996ec5bd86c41755fef9d6d31905c47172e"

0 commit comments

Comments
 (0)