mirror of
https://github.com/wallace5303/ee-core.git
synced 2026-04-05 07:29:04 +08:00
[chore] [ee-bin] Do not use path. join() to ensure consistent performance between Windows and macOS
This commit is contained in:
6284
.gitignore
vendored
6284
.gitignore
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ee-bin",
|
||||
"version": "4.1.7",
|
||||
"version": "4.1.8",
|
||||
"description": "ee bin",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -321,9 +321,11 @@ class ServeProcess {
|
||||
//console.log("debugger:", pkg.main)
|
||||
writeJsonSync(pkgPath, pkg);
|
||||
} else {
|
||||
// [todo] Do not use path. join() to ensure consistent performance between Windows and macOS
|
||||
// const bundleMainPath = path.join(this.bundleDir, '/main.js');
|
||||
const bundleMainPath = this.bundleDir + '/main.js';
|
||||
|
||||
// Modify when the path is incorrect to reduce unnecessary operations
|
||||
const bundleMainPath = path.join(this.bundleDir, 'main.js');
|
||||
//console.log("build:", bundleMainPath)
|
||||
if (pkg.main != bundleMainPath) {
|
||||
pkg.main = bundleMainPath;
|
||||
writeJsonSync(pkgPath, pkg);
|
||||
|
||||
Reference in New Issue
Block a user