vite-plugin-spire.officejs-test 2.0.7 → 2.0.8
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/index.mjs +5 -2
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -359,7 +359,7 @@ const createSqlDirInDev = async (targetDir, sourceFile) => {
|
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
const createSqlDirInProd = async (root) => {
|
|
362
|
-
const configDir = resolve(root,
|
|
362
|
+
const configDir = resolve(root, targetStaticPrfix, prodConfigDir);
|
|
363
363
|
const configPath = resolve(configDir, prodConfigName);
|
|
364
364
|
const sqlDir = await getConfigDbPath(configPath);
|
|
365
365
|
const absoluteDir = sqlDir && resolve(configDir, "..", sqlDir);
|
|
@@ -414,10 +414,13 @@ const bundleCoAuthServer = async (options, projectRoot) => {
|
|
|
414
414
|
const packageJsonPath = requireFunc.resolve(`${packageName}/package.json`);
|
|
415
415
|
const packageRoot = dirname(packageJsonPath) + packagePath2;
|
|
416
416
|
const targetStaticDir = join(buildOutDir, buildDir);
|
|
417
|
+
console.log("buildOutDir", buildOutDir);
|
|
418
|
+
console.log("configtargetPath", configtargetPath);
|
|
419
|
+
console.log("targetStaticDir", targetStaticDir);
|
|
417
420
|
console.log(`copying ${packageName} ......`);
|
|
418
421
|
await copyFile(packageRoot, targetStaticDir, ["logs", "data"]);
|
|
419
422
|
await copySingleFile(configSourcetPath, configtargetPath);
|
|
420
|
-
await createSqlDirInProd(
|
|
423
|
+
await createSqlDirInProd(buildOutDir);
|
|
421
424
|
console.log(`✅ successfully copied to: ${targetDir}`);
|
|
422
425
|
} catch (error) {
|
|
423
426
|
throw new Error(error);
|