@elliemae/pui-cli 6.0.1 → 6.0.2
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 +11 -5
- package/package.json +2 -2
package/lib/transpile/esbuild.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { build } = require('esbuild');
|
|
2
2
|
const fg = require('fast-glob');
|
|
3
|
-
const { writeFile, copyFile, readFile } = require('fs/promises');
|
|
3
|
+
const { writeFile, copyFile, readFile, mkdir } = require('fs/promises');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
6
6
|
|
|
@@ -34,10 +34,14 @@ const copyFiles = async ({ srcdir, outdir }) => {
|
|
|
34
34
|
`${srcdir}/**/*.*`,
|
|
35
35
|
`!${srcdir}/**/*.{js,jsx,ts,tsx,cjs,mjs}`,
|
|
36
36
|
]);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
await Promise.all(
|
|
38
|
+
files.map(async (srcFilePath) => {
|
|
39
|
+
const destFilePath = srcFilePath.replace(srcdir, outdir);
|
|
40
|
+
const fileDir = path.dirname(destFilePath);
|
|
41
|
+
await mkdir(fileDir, { recursive: true });
|
|
42
|
+
await copyFile(srcFilePath, destFilePath);
|
|
43
|
+
}),
|
|
44
|
+
);
|
|
41
45
|
};
|
|
42
46
|
|
|
43
47
|
const getSideEffects = async () => {
|
|
@@ -69,6 +73,7 @@ exports.esBuild = async ({
|
|
|
69
73
|
}) => {
|
|
70
74
|
const inputFiles = [
|
|
71
75
|
`${srcdir}/**/*.{js,jsx,ts,tsx}`,
|
|
76
|
+
`!${srcdir}/**/*.d.ts`,
|
|
72
77
|
`!${srcdir}/**/*.test.{js,jsx,ts,tsx}`,
|
|
73
78
|
`!${srcdir}/**/*.stories.{js,jsx,ts,tsx}`,
|
|
74
79
|
`!${srcdir}/**/*.endpoint.{js,jsx,ts,tsx}`,
|
|
@@ -107,4 +112,5 @@ exports.esBuild = async ({
|
|
|
107
112
|
if (!skipNestedPackageJSON)
|
|
108
113
|
await createPackageJson({ outdir: esmOutdir, type: NODE_MODULE_TYPES.ESM });
|
|
109
114
|
};
|
|
115
|
+
|
|
110
116
|
exports.TARGETS = TARGETS;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"node-gyp": "~8.4.1",
|
|
184
184
|
"node-plop": "~0.30.0",
|
|
185
185
|
"nodemon": "~2.0.15",
|
|
186
|
-
"npm-check-updates": "12.2.
|
|
186
|
+
"npm-check-updates": "12.2.1",
|
|
187
187
|
"null-loader": "~4.0.1",
|
|
188
188
|
"pino": "~7.6.4",
|
|
189
189
|
"pino-pretty": "~7.5.0",
|