@zumerbox/build 0.6.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 CHANGED
@@ -2,6 +2,22 @@
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
+
12
+ #### [v0.7.0](https://github.com/zumerlab/zumerbox-build/compare/v0.6.0...v0.7.0)
13
+
14
+ > 25 April 2025
15
+
16
+ - Fix module ext [`1adc1ad`](https://github.com/zumerlab/zumerbox-build/commit/1adc1ade3012c003498a7d317afe6272450d1bcd)
17
+ - Bumped version [`c54a9e1`](https://github.com/zumerlab/zumerbox-build/commit/c54a9e15fee7f093760ee5c4a35a12aec850d54f)
18
+ - Bumped version [`95c1b70`](https://github.com/zumerlab/zumerbox-build/commit/95c1b708f5bfe136a2c1c6c33739435efc9284e8)
19
+ - fix ext [`3748b86`](https://github.com/zumerlab/zumerbox-build/commit/3748b86f2e9f5cbf4edcb5d524b5547befd33df8)
20
+
5
21
  #### [v0.6.0](https://github.com/zumerlab/zumerbox-build/compare/v0.5.0...v0.6.0)
6
22
 
7
23
  > 25 April 2025
package/bin/index.js CHANGED
@@ -47,10 +47,11 @@ const argv = yargs
47
47
  type: 'boolean',
48
48
  default: false
49
49
  })
50
- .option('extension', {
51
- alias: 'ext',
52
- describe: 'Set extension',
53
- type: 'string'
50
+ .option('module', {
51
+ alias: 'm',
52
+ describe: 'Set mjs extension',
53
+ type: 'boolean',
54
+ default: false
54
55
  })
55
56
  .help('h')
56
57
  .alias('h', 'help').argv;
@@ -100,9 +101,8 @@ if (argv.js) {
100
101
  options.entryPoints.push(argv.js);
101
102
  }
102
103
 
103
- if (argv.extension) {
104
- options.outExtension = argv.extension;
105
- optionsMinify.outExtension = argv.extension;
104
+ if (argv.module) {
105
+ options.outExtension = { '.js': '.mjs' }
106
106
  }
107
107
 
108
108
 
@@ -121,6 +121,10 @@ const optionsMinify = {
121
121
  platform: argv.platform
122
122
  };
123
123
 
124
+ if (argv.module) {
125
+ optionsMinify.outExtension = { '.js': '.mjs' }
126
+ }
127
+
124
128
  // Run esbuild
125
129
  esbuild
126
130
  .build(options)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zumerbox/build",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "",
5
5
  "author": "Juan Martin Muda",
6
6
  "license": "MIT",