@elliemae/pui-cli 6.0.0-beta.57 → 6.0.0-beta.58
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/lib/transpile/esbuild.js
CHANGED
|
@@ -65,6 +65,7 @@ exports.esBuild = async ({
|
|
|
65
65
|
esmOnly = false,
|
|
66
66
|
target = TARGETS.browerslist,
|
|
67
67
|
injectReactShim = true,
|
|
68
|
+
skipNestedPackageJSON = false,
|
|
68
69
|
}) => {
|
|
69
70
|
const inputFiles = [
|
|
70
71
|
`${srcdir}/**/*.{js,jsx,ts,tsx}`,
|
|
@@ -103,6 +104,7 @@ exports.esBuild = async ({
|
|
|
103
104
|
});
|
|
104
105
|
// copy files that are not built by esbuild
|
|
105
106
|
await copyFiles({ srcdir, outdir: esmOutdir });
|
|
106
|
-
|
|
107
|
+
if (!skipNestedPackageJSON)
|
|
108
|
+
await createPackageJson({ outdir: esmOutdir, type: NODE_MODULE_TYPES.ESM });
|
|
107
109
|
};
|
|
108
110
|
exports.TARGETS = TARGETS;
|