@eodash/eodash 5.0.0-alpha.1.4 → 5.0.0-alpha.1.5
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/bin/cli.js +3 -9
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { build, createServer, preview } from "vite"
|
|
4
4
|
import { execPath, appPath, buildTargetPath } from "./utils.js";
|
|
5
5
|
import { writeFile, rm, cp } from "fs/promises";
|
|
6
|
-
import { existsSync, mkdirSync } from "fs";
|
|
7
6
|
import { update } from "./update.js";
|
|
8
7
|
import { indexHtml, serverConfig } from "./serverConfig.js";
|
|
9
8
|
import path from "path";
|
|
@@ -29,14 +28,9 @@ export const buildApp = async (baseFlag) => {
|
|
|
29
28
|
await rm(htmlPath).catch(() => {
|
|
30
29
|
console.error('failed to remove index.html')
|
|
31
30
|
})
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
mkdirSync(path.join(appPath, './public'));
|
|
36
|
-
}
|
|
37
|
-
} catch (err) {
|
|
38
|
-
console.error(err);
|
|
39
|
-
}
|
|
31
|
+
// TODO: Do we really need to delete the public path? Creating issues
|
|
32
|
+
// when building on template instance
|
|
33
|
+
// await rm(path.join(appPath, './public'), { recursive: true }).catch()
|
|
40
34
|
})
|
|
41
35
|
|
|
42
36
|
if (appPath.includes('node_modules')) {
|