@zumerbox/build
Advanced tools
+10
-5
@@ -51,3 +51,3 @@ #!/usr/bin/env node | ||
| .option('module', { | ||
| alias: 'm', | ||
| alias: 'x', | ||
| describe: 'Set mjs extension', | ||
@@ -98,4 +98,3 @@ type: 'boolean', | ||
| plugins: [sassPlugin()], | ||
| platform: argv.platform, | ||
| outExtension: argv.module ? { '.js': '.mjs' } : null | ||
| platform: argv.platform | ||
| }; | ||
@@ -107,3 +106,7 @@ | ||
| if (argv.module) { | ||
| options.outExtension = { '.js': '.mjs' } | ||
| } | ||
| if (argv.scss) { | ||
@@ -121,6 +124,8 @@ options.entryPoints.push(argv.scss); | ||
| plugins: [sassPlugin()], | ||
| platform: argv.platform, | ||
| outExtension: argv.module ? { '.js': '.mjs' } : null | ||
| platform: argv.platform | ||
| }; | ||
| if (argv.module) { | ||
| optionsMinify.outExtension = { '.js': '.mjs' } | ||
| } | ||
@@ -127,0 +132,0 @@ // Run esbuild |
+7
-0
@@ -5,2 +5,9 @@ ### Changelog | ||
| #### [v0.8.2](https://github.com/zumerlab/zumerbox-build/compare/v0.8.1...v0.8.2) | ||
| > 25 April 2025 | ||
| - fix ext [`0b703b4`](https://github.com/zumerlab/zumerbox-build/commit/0b703b4b3865147ba8c29e7d4b7afc1a6aba7110) | ||
| - Bumped version [`548d951`](https://github.com/zumerlab/zumerbox-build/commit/548d951d26e51bc41b096d556cf3cf1478036b5f) | ||
| #### [v0.8.1](https://github.com/zumerlab/zumerbox-build/compare/v0.8.0...v0.8.1) | ||
@@ -7,0 +14,0 @@ |
+1
-2
| { | ||
| "name": "@zumerbox/build", | ||
| "version": "0.8.1", | ||
| "version": "0.8.2", | ||
| "description": "", | ||
@@ -12,3 +12,2 @@ "author": "Juan Martin Muda", | ||
| "scripts": { | ||
| "start": "node bin/index.js", | ||
| "bump": "npx @zumerbox/bump", | ||
@@ -15,0 +14,0 @@ "postbump": "npx @zumerbox/changelog && git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags" |
11280
2.97%121
3.42%