diff --git a/config/templates/build.dflt.mjs b/config/templates/build.dflt.mjs index 2f76b066047..d6d5fc9368b 100644 --- a/config/templates/build.dflt.mjs +++ b/config/templates/build.dflt.mjs @@ -24,8 +24,7 @@ const options = { } // Let esbuild generate the build -let result -;(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { diff --git a/designs/aaron/build.mjs b/designs/aaron/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/aaron/build.mjs +++ b/designs/aaron/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/albert/build.mjs b/designs/albert/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/albert/build.mjs +++ b/designs/albert/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/bee/build.mjs b/designs/bee/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/bee/build.mjs +++ b/designs/bee/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/bella/build.mjs b/designs/bella/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/bella/build.mjs +++ b/designs/bella/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/benjamin/build.mjs b/designs/benjamin/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/benjamin/build.mjs +++ b/designs/benjamin/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/bent/build.mjs b/designs/bent/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/bent/build.mjs +++ b/designs/bent/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/bob/build.mjs b/designs/bob/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/bob/build.mjs +++ b/designs/bob/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/breanna/build.mjs b/designs/breanna/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/breanna/build.mjs +++ b/designs/breanna/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/brian/build.mjs b/designs/brian/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/brian/build.mjs +++ b/designs/brian/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/bruce/build.mjs b/designs/bruce/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/bruce/build.mjs +++ b/designs/bruce/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/carlita/build.mjs b/designs/carlita/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/carlita/build.mjs +++ b/designs/carlita/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/carlton/build.mjs b/designs/carlton/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/carlton/build.mjs +++ b/designs/carlton/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/cathrin/build.mjs b/designs/cathrin/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/cathrin/build.mjs +++ b/designs/cathrin/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/charlie/build.mjs b/designs/charlie/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/charlie/build.mjs +++ b/designs/charlie/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/cornelius/build.mjs b/designs/cornelius/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/cornelius/build.mjs +++ b/designs/cornelius/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/diana/build.mjs b/designs/diana/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/diana/build.mjs +++ b/designs/diana/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/examples/build.mjs b/designs/examples/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/examples/build.mjs +++ b/designs/examples/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/florence/build.mjs b/designs/florence/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/florence/build.mjs +++ b/designs/florence/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/florent/build.mjs b/designs/florent/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/florent/build.mjs +++ b/designs/florent/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/hi/build.mjs b/designs/hi/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/hi/build.mjs +++ b/designs/hi/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/holmes/build.mjs b/designs/holmes/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/holmes/build.mjs +++ b/designs/holmes/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/hortensia/build.mjs b/designs/hortensia/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/hortensia/build.mjs +++ b/designs/hortensia/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/huey/build.mjs b/designs/huey/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/huey/build.mjs +++ b/designs/huey/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/hugo/build.mjs b/designs/hugo/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/hugo/build.mjs +++ b/designs/hugo/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/jaeger/build.mjs b/designs/jaeger/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/jaeger/build.mjs +++ b/designs/jaeger/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/legend/build.mjs b/designs/legend/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/legend/build.mjs +++ b/designs/legend/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/lucy/build.mjs b/designs/lucy/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/lucy/build.mjs +++ b/designs/lucy/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/lunetius/build.mjs b/designs/lunetius/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/lunetius/build.mjs +++ b/designs/lunetius/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/noble/build.mjs b/designs/noble/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/noble/build.mjs +++ b/designs/noble/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/octoplushy/build.mjs b/designs/octoplushy/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/octoplushy/build.mjs +++ b/designs/octoplushy/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/paco/build.mjs b/designs/paco/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/paco/build.mjs +++ b/designs/paco/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/penelope/build.mjs b/designs/penelope/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/penelope/build.mjs +++ b/designs/penelope/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/plugintest/build.mjs b/designs/plugintest/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/plugintest/build.mjs +++ b/designs/plugintest/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/rendertest/build.mjs b/designs/rendertest/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/rendertest/build.mjs +++ b/designs/rendertest/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/sandy/build.mjs b/designs/sandy/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/sandy/build.mjs +++ b/designs/sandy/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/shin/build.mjs b/designs/shin/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/shin/build.mjs +++ b/designs/shin/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/simon/build.mjs b/designs/simon/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/simon/build.mjs +++ b/designs/simon/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/simone/build.mjs b/designs/simone/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/simone/build.mjs +++ b/designs/simone/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/sven/build.mjs b/designs/sven/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/sven/build.mjs +++ b/designs/sven/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/tamiko/build.mjs b/designs/tamiko/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/tamiko/build.mjs +++ b/designs/tamiko/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/teagan/build.mjs b/designs/teagan/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/teagan/build.mjs +++ b/designs/teagan/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/tiberius/build.mjs b/designs/tiberius/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/tiberius/build.mjs +++ b/designs/tiberius/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/titan/build.mjs b/designs/titan/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/titan/build.mjs +++ b/designs/titan/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/trayvon/build.mjs b/designs/trayvon/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/trayvon/build.mjs +++ b/designs/trayvon/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/tutorial/build.mjs b/designs/tutorial/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/tutorial/build.mjs +++ b/designs/tutorial/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/unice/build.mjs b/designs/unice/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/unice/build.mjs +++ b/designs/unice/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/ursula/build.mjs b/designs/ursula/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/ursula/build.mjs +++ b/designs/ursula/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/wahid/build.mjs b/designs/wahid/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/wahid/build.mjs +++ b/designs/wahid/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/walburga/build.mjs b/designs/walburga/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/walburga/build.mjs +++ b/designs/walburga/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/waralee/build.mjs b/designs/waralee/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/waralee/build.mjs +++ b/designs/waralee/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/designs/yuri/build.mjs b/designs/yuri/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/designs/yuri/build.mjs +++ b/designs/yuri/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/packages/core/build.mjs b/packages/core/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/packages/core/build.mjs +++ b/packages/core/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/packages/models/build.mjs b/packages/models/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/packages/models/build.mjs +++ b/packages/models/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/packages/snapseries/build.mjs b/packages/snapseries/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/packages/snapseries/build.mjs +++ b/packages/snapseries/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-banner/build.mjs b/plugins/plugin-banner/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-banner/build.mjs +++ b/plugins/plugin-banner/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-banner/tests/shared.test.mjs b/plugins/plugin-banner/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-banner/tests/shared.test.mjs +++ b/plugins/plugin-banner/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-bartack/build.mjs b/plugins/plugin-bartack/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-bartack/build.mjs +++ b/plugins/plugin-bartack/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-bartack/tests/shared.test.mjs b/plugins/plugin-bartack/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-bartack/tests/shared.test.mjs +++ b/plugins/plugin-bartack/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-bundle/tests/shared.test.mjs b/plugins/plugin-bundle/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-bundle/tests/shared.test.mjs +++ b/plugins/plugin-bundle/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-bust/build.mjs b/plugins/plugin-bust/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-bust/build.mjs +++ b/plugins/plugin-bust/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-bust/tests/shared.test.mjs b/plugins/plugin-bust/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-bust/tests/shared.test.mjs +++ b/plugins/plugin-bust/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-buttons/build.mjs b/plugins/plugin-buttons/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-buttons/build.mjs +++ b/plugins/plugin-buttons/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-buttons/tests/shared.test.mjs b/plugins/plugin-buttons/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-buttons/tests/shared.test.mjs +++ b/plugins/plugin-buttons/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-cutlist/build.mjs b/plugins/plugin-cutlist/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-cutlist/build.mjs +++ b/plugins/plugin-cutlist/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-cutlist/tests/shared.test.mjs b/plugins/plugin-cutlist/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-cutlist/tests/shared.test.mjs +++ b/plugins/plugin-cutlist/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-cutonfold/build.mjs b/plugins/plugin-cutonfold/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-cutonfold/build.mjs +++ b/plugins/plugin-cutonfold/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-cutonfold/tests/shared.test.mjs b/plugins/plugin-cutonfold/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-cutonfold/tests/shared.test.mjs +++ b/plugins/plugin-cutonfold/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-dimension/build.mjs b/plugins/plugin-dimension/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-dimension/build.mjs +++ b/plugins/plugin-dimension/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-dimension/tests/shared.test.mjs b/plugins/plugin-dimension/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-dimension/tests/shared.test.mjs +++ b/plugins/plugin-dimension/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-flip/build.mjs b/plugins/plugin-flip/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-flip/build.mjs +++ b/plugins/plugin-flip/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-flip/tests/shared.test.mjs b/plugins/plugin-flip/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-flip/tests/shared.test.mjs +++ b/plugins/plugin-flip/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-gore/build.mjs b/plugins/plugin-gore/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-gore/build.mjs +++ b/plugins/plugin-gore/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-gore/tests/shared.test.mjs b/plugins/plugin-gore/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-gore/tests/shared.test.mjs +++ b/plugins/plugin-gore/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-grainline/build.mjs b/plugins/plugin-grainline/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-grainline/build.mjs +++ b/plugins/plugin-grainline/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-grainline/tests/shared.test.mjs b/plugins/plugin-grainline/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-grainline/tests/shared.test.mjs +++ b/plugins/plugin-grainline/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-i18n/build.mjs b/plugins/plugin-i18n/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-i18n/build.mjs +++ b/plugins/plugin-i18n/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-i18n/tests/shared.test.mjs b/plugins/plugin-i18n/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-i18n/tests/shared.test.mjs +++ b/plugins/plugin-i18n/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-logo/build.mjs b/plugins/plugin-logo/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-logo/build.mjs +++ b/plugins/plugin-logo/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-logo/tests/shared.test.mjs b/plugins/plugin-logo/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-logo/tests/shared.test.mjs +++ b/plugins/plugin-logo/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-measurements/build.mjs b/plugins/plugin-measurements/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-measurements/build.mjs +++ b/plugins/plugin-measurements/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-measurements/tests/shared.test.mjs b/plugins/plugin-measurements/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-measurements/tests/shared.test.mjs +++ b/plugins/plugin-measurements/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-mirror/build.mjs b/plugins/plugin-mirror/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-mirror/build.mjs +++ b/plugins/plugin-mirror/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-mirror/tests/shared.test.mjs b/plugins/plugin-mirror/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-mirror/tests/shared.test.mjs +++ b/plugins/plugin-mirror/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-notches/build.mjs b/plugins/plugin-notches/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-notches/build.mjs +++ b/plugins/plugin-notches/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-notches/tests/shared.test.mjs b/plugins/plugin-notches/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-notches/tests/shared.test.mjs +++ b/plugins/plugin-notches/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-round/build.mjs b/plugins/plugin-round/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-round/build.mjs +++ b/plugins/plugin-round/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-round/tests/shared.test.mjs b/plugins/plugin-round/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-round/tests/shared.test.mjs +++ b/plugins/plugin-round/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-scalebox/build.mjs b/plugins/plugin-scalebox/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-scalebox/build.mjs +++ b/plugins/plugin-scalebox/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-scalebox/tests/shared.test.mjs b/plugins/plugin-scalebox/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-scalebox/tests/shared.test.mjs +++ b/plugins/plugin-scalebox/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-sprinkle/build.mjs b/plugins/plugin-sprinkle/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-sprinkle/build.mjs +++ b/plugins/plugin-sprinkle/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-sprinkle/tests/shared.test.mjs b/plugins/plugin-sprinkle/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-sprinkle/tests/shared.test.mjs +++ b/plugins/plugin-sprinkle/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-svgattr/build.mjs b/plugins/plugin-svgattr/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-svgattr/build.mjs +++ b/plugins/plugin-svgattr/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-svgattr/tests/shared.test.mjs b/plugins/plugin-svgattr/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-svgattr/tests/shared.test.mjs +++ b/plugins/plugin-svgattr/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-theme/build.mjs b/plugins/plugin-theme/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-theme/build.mjs +++ b/plugins/plugin-theme/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-theme/tests/shared.test.mjs b/plugins/plugin-theme/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-theme/tests/shared.test.mjs +++ b/plugins/plugin-theme/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-timing/build.mjs b/plugins/plugin-timing/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-timing/build.mjs +++ b/plugins/plugin-timing/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-timing/tests/shared.test.mjs b/plugins/plugin-timing/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-timing/tests/shared.test.mjs +++ b/plugins/plugin-timing/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-title/build.mjs b/plugins/plugin-title/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-title/build.mjs +++ b/plugins/plugin-title/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-title/tests/shared.test.mjs b/plugins/plugin-title/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-title/tests/shared.test.mjs +++ b/plugins/plugin-title/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) - diff --git a/plugins/plugin-versionfree-svg/build.mjs b/plugins/plugin-versionfree-svg/build.mjs index aa4dfabb290..d6d5fc9368b 100644 --- a/plugins/plugin-versionfree-svg/build.mjs +++ b/plugins/plugin-versionfree-svg/build.mjs @@ -17,20 +17,18 @@ const options = { entryPoints: ['src/index.mjs'], format: 'esm', outfile: 'dist/index.mjs', - external: ["@freesewing"], + external: ['@freesewing'], metafile: process.env.VERBOSE ? true : false, minify: process.env.NO_MINIFY ? false : true, sourcemap: true, } // Let esbuild generate the build -let result -(async () => { +let result = null(async () => { result = await esbuild.build(options).catch(() => process.exit(1)) if (process.env.VERBOSE) { const info = await esbuild.analyzeMetafile(result.metafile) console.log(info) } - })() diff --git a/plugins/plugin-versionfree-svg/tests/shared.test.mjs b/plugins/plugin-versionfree-svg/tests/shared.test.mjs index 216a74b956b..7bf4f668398 100644 --- a/plugins/plugin-versionfree-svg/tests/shared.test.mjs +++ b/plugins/plugin-versionfree-svg/tests/shared.test.mjs @@ -4,4 +4,3 @@ import { sharedPluginTests } from '../../../tests/plugins/shared.mjs' // Run shared tests sharedPluginTests(plugin) -