olly-molly 0.2.19 ā 0.2.20
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 +4 -3
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -88,8 +88,9 @@ function getLocalVersion() {
|
|
|
88
88
|
|
|
89
89
|
const CUSTOM_PROFILES_DIR = path.join(APP_DIR, 'custom-profiles');
|
|
90
90
|
|
|
91
|
-
function hasProductionBuild() {
|
|
92
|
-
return fs.existsSync(path.join(APP_DIR, '.next', 'BUILD_ID'))
|
|
91
|
+
function hasProductionBuild(standaloneServerPath) {
|
|
92
|
+
return fs.existsSync(path.join(APP_DIR, '.next', 'BUILD_ID')) ||
|
|
93
|
+
fs.existsSync(standaloneServerPath);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
function backupUserData() {
|
|
@@ -195,7 +196,7 @@ async function main() {
|
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
// Build
|
|
198
|
-
if (needsBuild || !hasProductionBuild()) {
|
|
199
|
+
if (needsBuild || !hasProductionBuild(standaloneServerPath)) {
|
|
199
200
|
console.log('\nšØ Building...\n');
|
|
200
201
|
execSync('npm run build', { cwd: APP_DIR, stdio: 'inherit' });
|
|
201
202
|
}
|