@jrc03c/make-key 0.0.33 → 0.0.35

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/build.mjs CHANGED
@@ -5,19 +5,15 @@ function rebuild() {
5
5
  console.log(`\nRebuilding... (${new Date().toLocaleString()})`)
6
6
 
7
7
  try {
8
- const baseCommand = "npx esbuild src/index.mjs --bundle"
8
+ execSync(
9
+ `npx esbuild src/iife.mjs --bundle --outfile=dist/make-key.js`,
10
+ { encoding: "utf8" },
11
+ )
9
12
 
10
- const commands = [
11
- "mkdir -p dist",
12
- "rm -rf dist/*",
13
- `${baseCommand} --platform=node --outfile=dist/make-key.require.cjs`,
14
- `${baseCommand} --outfile=dist/make-key.standalone.js`,
15
- `${baseCommand} --format=esm --outfile=dist/make-key.import.mjs`,
16
- ]
17
-
18
- commands.forEach(command => {
19
- execSync(command, { encoding: "utf8" })
20
- })
13
+ execSync(
14
+ `npx esbuild src/iife.mjs --bundle --minify --outfile=dist/make-key.min.js`,
15
+ { encoding: "utf8" },
16
+ )
21
17
 
22
18
  console.log("\nDone! 🎉\n")
23
19
  } catch (e) {