@zumerbox/build 0.7.0 → 0.8.0
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 +7 -0
- package/bin/index.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
#### [v0.8.0](https://github.com/zumerlab/zumerbox-build/compare/v0.7.0...v0.8.0)
|
6
|
+
|
7
|
+
> 25 April 2025
|
8
|
+
|
9
|
+
- Fix module ext [`b4acad7`](https://github.com/zumerlab/zumerbox-build/commit/b4acad72c936cc0214d17087d63299a8ce6b14c4)
|
10
|
+
- Bumped version [`b922302`](https://github.com/zumerlab/zumerbox-build/commit/b922302cf3643be01ee978c61956542cc3abfa3e)
|
11
|
+
|
5
12
|
#### [v0.7.0](https://github.com/zumerlab/zumerbox-build/compare/v0.6.0...v0.7.0)
|
6
13
|
|
7
14
|
> 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
|
@@ -103,7 +103,6 @@ if (argv.js) {
|
|
103
103
|
|
104
104
|
if (argv.module) {
|
105
105
|
options.outExtension = { '.js': '.mjs' }
|
106
|
-
optionsMinify.outExtension = { '.js': '.mjs' }
|
107
106
|
}
|
108
107
|
|
109
108
|
|
@@ -122,6 +121,10 @@ const optionsMinify = {
|
|
122
121
|
platform: argv.platform
|
123
122
|
};
|
124
123
|
|
124
|
+
if (argv.module) {
|
125
|
+
optionsMinify.outExtension = { '.js': '.mjs' }
|
126
|
+
}
|
127
|
+
|
125
128
|
// Run esbuild
|
126
129
|
esbuild
|
127
130
|
.build(options)
|