makepack 1.3.6 → 1.3.7
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/package.json
CHANGED
|
@@ -17,8 +17,8 @@ const pack = async (args) => {
|
|
|
17
17
|
let loader = logLoader("Generating a production build for the package...")
|
|
18
18
|
const esbuildConfig = await loadConfig('esbuild.config.js') || {}
|
|
19
19
|
|
|
20
|
-
function build(format) {
|
|
21
|
-
return esbuild.
|
|
20
|
+
async function build(format) {
|
|
21
|
+
return esbuild.buildSync({
|
|
22
22
|
// bundle: true,
|
|
23
23
|
// target: ['esnext'],
|
|
24
24
|
// splitting: format === 'esm', // Enable code splitting only for ESM
|
|
@@ -36,10 +36,8 @@ const pack = async (args) => {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
build('cjs'),
|
|
42
|
-
]).catch(() => process.exit(1));
|
|
39
|
+
await build('esm')
|
|
40
|
+
await build('cjs')
|
|
43
41
|
|
|
44
42
|
loader.stop()
|
|
45
43
|
loader = logLoader("🔄 Generating TypeScript declarations...")
|