@zumerbox/build 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/bin/index.js +6 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,20 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
#### [v0.8.1](https://github.com/zumerlab/zumerbox-build/compare/v0.8.0...v0.8.1)
|
6
|
+
|
7
|
+
> 25 April 2025
|
8
|
+
|
9
|
+
- fix ext [`63b1a52`](https://github.com/zumerlab/zumerbox-build/commit/63b1a5228f3624732f3610303578f9a20d4e9bbc)
|
10
|
+
- Bumped version [`54c48be`](https://github.com/zumerlab/zumerbox-build/commit/54c48bea1ced5bc4ac94aa5e528afb4b1c8a367d)
|
11
|
+
|
12
|
+
#### [v0.8.0](https://github.com/zumerlab/zumerbox-build/compare/v0.7.0...v0.8.0)
|
13
|
+
|
14
|
+
> 25 April 2025
|
15
|
+
|
16
|
+
- Fix module ext [`b4acad7`](https://github.com/zumerlab/zumerbox-build/commit/b4acad72c936cc0214d17087d63299a8ce6b14c4)
|
17
|
+
- Bumped version [`b922302`](https://github.com/zumerlab/zumerbox-build/commit/b922302cf3643be01ee978c61956542cc3abfa3e)
|
18
|
+
|
5
19
|
#### [v0.7.0](https://github.com/zumerlab/zumerbox-build/compare/v0.6.0...v0.7.0)
|
6
20
|
|
7
21
|
> 25 April 2025
|
package/bin/index.js
CHANGED
@@ -48,7 +48,7 @@ const argv = yargs
|
|
48
48
|
default: false
|
49
49
|
})
|
50
50
|
.option('module', {
|
51
|
-
alias: '
|
51
|
+
alias: 'm',
|
52
52
|
describe: 'Set mjs extension',
|
53
53
|
type: 'boolean',
|
54
54
|
default: false
|
@@ -94,18 +94,14 @@ const options = {
|
|
94
94
|
outdir: argv.outdir,
|
95
95
|
legalComments: argv.comments ? 'inline' : 'none',
|
96
96
|
plugins: [sassPlugin()],
|
97
|
-
platform: argv.platform
|
97
|
+
platform: argv.platform,
|
98
|
+
outExtension: argv.module ? { '.js': '.mjs' } : null
|
98
99
|
};
|
99
100
|
|
100
101
|
if (argv.js) {
|
101
102
|
options.entryPoints.push(argv.js);
|
102
103
|
}
|
103
104
|
|
104
|
-
if (argv.module) {
|
105
|
-
options.outExtension = { '.js': '.mjs' }
|
106
|
-
optionsMinify.outExtension = { '.js': '.mjs' }
|
107
|
-
}
|
108
|
-
|
109
105
|
|
110
106
|
if (argv.scss) {
|
111
107
|
options.entryPoints.push(argv.scss);
|
@@ -119,9 +115,11 @@ const optionsMinify = {
|
|
119
115
|
metafile: true,
|
120
116
|
minify: true,
|
121
117
|
plugins: [sassPlugin()],
|
122
|
-
platform: argv.platform
|
118
|
+
platform: argv.platform,
|
119
|
+
outExtension: argv.module ? { '.js': '.mjs' } : null
|
123
120
|
};
|
124
121
|
|
122
|
+
|
125
123
|
// Run esbuild
|
126
124
|
esbuild
|
127
125
|
.build(options)
|