@zumerbox/build 0.8.1 → 0.8.2
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 +10 -5
- package/package.json +1 -2
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.2](https://github.com/zumerlab/zumerbox-build/compare/v0.8.1...v0.8.2)
|
6
|
+
|
7
|
+
> 25 April 2025
|
8
|
+
|
9
|
+
- fix ext [`0b703b4`](https://github.com/zumerlab/zumerbox-build/commit/0b703b4b3865147ba8c29e7d4b7afc1a6aba7110)
|
10
|
+
- Bumped version [`548d951`](https://github.com/zumerlab/zumerbox-build/commit/548d951d26e51bc41b096d556cf3cf1478036b5f)
|
11
|
+
|
5
12
|
#### [v0.8.1](https://github.com/zumerlab/zumerbox-build/compare/v0.8.0...v0.8.1)
|
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: 'x',
|
52
52
|
describe: 'Set mjs extension',
|
53
53
|
type: 'boolean',
|
54
54
|
default: false
|
@@ -94,14 +94,17 @@ const options = {
|
|
94
94
|
outdir: argv.outdir,
|
95
95
|
legalComments: argv.comments ? 'inline' : 'none',
|
96
96
|
plugins: [sassPlugin()],
|
97
|
-
platform: argv.platform
|
98
|
-
outExtension: argv.module ? { '.js': '.mjs' } : null
|
97
|
+
platform: argv.platform
|
99
98
|
};
|
100
99
|
|
101
100
|
if (argv.js) {
|
102
101
|
options.entryPoints.push(argv.js);
|
103
102
|
}
|
104
103
|
|
104
|
+
if (argv.module) {
|
105
|
+
options.outExtension = { '.js': '.mjs' }
|
106
|
+
}
|
107
|
+
|
105
108
|
|
106
109
|
if (argv.scss) {
|
107
110
|
options.entryPoints.push(argv.scss);
|
@@ -115,10 +118,12 @@ const optionsMinify = {
|
|
115
118
|
metafile: true,
|
116
119
|
minify: true,
|
117
120
|
plugins: [sassPlugin()],
|
118
|
-
platform: argv.platform
|
119
|
-
outExtension: argv.module ? { '.js': '.mjs' } : null
|
121
|
+
platform: argv.platform
|
120
122
|
};
|
121
123
|
|
124
|
+
if (argv.module) {
|
125
|
+
optionsMinify.outExtension = { '.js': '.mjs' }
|
126
|
+
}
|
122
127
|
|
123
128
|
// Run esbuild
|
124
129
|
esbuild
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zumerbox/build",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.2",
|
4
4
|
"description": "",
|
5
5
|
"author": "Juan Martin Muda",
|
6
6
|
"license": "MIT",
|
@@ -9,7 +9,6 @@
|
|
9
9
|
"build": "bin/index.js"
|
10
10
|
},
|
11
11
|
"scripts": {
|
12
|
-
"start": "node bin/index.js",
|
13
12
|
"bump": "npx @zumerbox/bump",
|
14
13
|
"postbump": "npx @zumerbox/changelog && git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags"
|
15
14
|
},
|