@jayfong/x-server 2.88.0 → 2.88.1
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.
|
@@ -178,7 +178,14 @@ class BuildUtil {
|
|
|
178
178
|
const distMultipleSchemaDir = _nodePath.default.join(distDir, _nodePath.default.basename(multipleSchemaDir));
|
|
179
179
|
await _fsExtra.default.copy(multipleSchemaDir, distMultipleSchemaDir);
|
|
180
180
|
}
|
|
181
|
-
if (
|
|
181
|
+
if (options.noPrismaEngine) {
|
|
182
|
+
const prismaEngineFiles = await (0, _globby.default)('libquery_engine-*', {
|
|
183
|
+
cwd: distDir,
|
|
184
|
+
onlyFiles: true,
|
|
185
|
+
absolute: true
|
|
186
|
+
});
|
|
187
|
+
await Promise.all(prismaEngineFiles.map(file => _fsExtra.default.remove(file)));
|
|
188
|
+
} else {
|
|
182
189
|
// 复制查询引擎
|
|
183
190
|
const libqueryEngineFiles = await (0, _globby.default)('libquery_engine-*', {
|
|
184
191
|
cwd: _nodePath.default.join(options.cwd, 'node_modules/.prisma/client'),
|
|
@@ -36,7 +36,7 @@ class DeployUtil {
|
|
|
36
36
|
await ssh.putFile(appFile, remoteAppFile);
|
|
37
37
|
await ssh.execCommand((0, _vtils.dedent)`
|
|
38
38
|
set -ex
|
|
39
|
-
tar -
|
|
39
|
+
tar -zxf ${remoteAppFile} -C ${appDir}
|
|
40
40
|
cd "${appDir}/${options.channel || 'dist'}"
|
|
41
41
|
[ -f no_install.lock ] && yarn_disable_self_update_check=true tyn
|
|
42
42
|
${options.cmd || ''}
|
package/lib/cli/build_util.js
CHANGED
|
@@ -172,7 +172,14 @@ export class BuildUtil {
|
|
|
172
172
|
const distMultipleSchemaDir = path.join(distDir, path.basename(multipleSchemaDir));
|
|
173
173
|
await fs.copy(multipleSchemaDir, distMultipleSchemaDir);
|
|
174
174
|
}
|
|
175
|
-
if (
|
|
175
|
+
if (options.noPrismaEngine) {
|
|
176
|
+
const prismaEngineFiles = await globby('libquery_engine-*', {
|
|
177
|
+
cwd: distDir,
|
|
178
|
+
onlyFiles: true,
|
|
179
|
+
absolute: true
|
|
180
|
+
});
|
|
181
|
+
await Promise.all(prismaEngineFiles.map(file => fs.remove(file)));
|
|
182
|
+
} else {
|
|
176
183
|
// 复制查询引擎
|
|
177
184
|
const libqueryEngineFiles = await globby('libquery_engine-*', {
|
|
178
185
|
cwd: path.join(options.cwd, 'node_modules/.prisma/client'),
|
package/lib/cli/deploy_util.js
CHANGED
|
@@ -31,7 +31,7 @@ export class DeployUtil {
|
|
|
31
31
|
await ssh.putFile(appFile, remoteAppFile);
|
|
32
32
|
await ssh.execCommand(dedent`
|
|
33
33
|
set -ex
|
|
34
|
-
tar -
|
|
34
|
+
tar -zxf ${remoteAppFile} -C ${appDir}
|
|
35
35
|
cd "${appDir}/${options.channel || 'dist'}"
|
|
36
36
|
[ -f no_install.lock ] && yarn_disable_self_update_check=true tyn
|
|
37
37
|
${options.cmd || ''}
|