@zumerbox/build 0.6.0 → 0.7.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,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ #### [v0.7.0](https://github.com/zumerlab/zumerbox-build/compare/v0.6.0...v0.7.0)
6
+
7
+ > 25 April 2025
8
+
9
+ - Fix module ext [`1adc1ad`](https://github.com/zumerlab/zumerbox-build/commit/1adc1ade3012c003498a7d317afe6272450d1bcd)
10
+ - Bumped version [`c54a9e1`](https://github.com/zumerlab/zumerbox-build/commit/c54a9e15fee7f093760ee5c4a35a12aec850d54f)
11
+ - Bumped version [`95c1b70`](https://github.com/zumerlab/zumerbox-build/commit/95c1b708f5bfe136a2c1c6c33739435efc9284e8)
12
+ - fix ext [`3748b86`](https://github.com/zumerlab/zumerbox-build/commit/3748b86f2e9f5cbf4edcb5d524b5547befd33df8)
13
+
5
14
  #### [v0.6.0](https://github.com/zumerlab/zumerbox-build/compare/v0.5.0...v0.6.0)
6
15
 
7
16
  > 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: 'msj',
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,9 @@ 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
+ optionsMinify.outExtension = { '.js': '.mjs' }
106
107
  }
107
108
 
108
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zumerbox/build",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "",
5
5
  "author": "Juan Martin Muda",
6
6
  "license": "MIT",