opticore-installer 1.2.61 → 1.2.62
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/dist/index.cjs +11 -4
- package/dist/index.js +11 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -513,11 +513,17 @@ var SProjectCreation = async (gitRepo, projectPath, currentPath, projectName) =>
|
|
|
513
513
|
pkg.dependencies["opticore-feature-component"] = pkg.dependencies["opticore-feature-module"];
|
|
514
514
|
delete pkg.dependencies["opticore-feature-module"];
|
|
515
515
|
}
|
|
516
|
-
if (pkg.dependencies)
|
|
517
|
-
|
|
516
|
+
if (pkg.dependencies) {
|
|
517
|
+
pkg.dependencies = await UpdateOpticoreDeps(exec, pkg.dependencies);
|
|
518
|
+
}
|
|
519
|
+
if (pkg.devDependencies) {
|
|
520
|
+
pkg.devDependencies = await UpdateOpticoreDeps(exec, pkg.devDependencies);
|
|
521
|
+
}
|
|
518
522
|
import_fs3.default.writeFileSync(pkgPath, JSON.stringify(pkg, null, 4));
|
|
519
523
|
const lockPath = import_path2.default.join(escapedPath, "package-lock.json");
|
|
520
|
-
if (import_fs3.default.existsSync(lockPath))
|
|
524
|
+
if (import_fs3.default.existsSync(lockPath)) {
|
|
525
|
+
import_fs3.default.unlinkSync(lockPath);
|
|
526
|
+
}
|
|
521
527
|
await exec("npm uninstall ora ansi-colors cli-spinner dotenv gradient-string util tsup path fs node ts-node tslib @types/cli-spinner @clack/prompts");
|
|
522
528
|
cleanSpinner.succeed();
|
|
523
529
|
const npmSpinner = ora("Installing dependencies").start();
|
|
@@ -752,7 +758,8 @@ var PPostgres = (arg) => {
|
|
|
752
758
|
host: arg.host ?? import_dotenv3.default.config()?.parsed?.DATA_BASE_HOST,
|
|
753
759
|
user: arg.user ?? import_dotenv3.default.config()?.parsed?.DATA_BASE_USER,
|
|
754
760
|
password: arg.password ?? import_dotenv3.default.config()?.parsed?.DATA_BASE_PASSWORD,
|
|
755
|
-
port: arg.port ?? import_dotenv3.default.config()?.parsed?.DATA_BASE_PORT
|
|
761
|
+
port: arg.port ?? import_dotenv3.default.config()?.parsed?.DATA_BASE_PORT,
|
|
762
|
+
database: arg.database ?? import_dotenv3.default.config()?.parsed?.DATA_BASE_NAME
|
|
756
763
|
};
|
|
757
764
|
};
|
|
758
765
|
|
package/dist/index.js
CHANGED
|
@@ -490,11 +490,17 @@ var SProjectCreation = async (gitRepo, projectPath, currentPath, projectName) =>
|
|
|
490
490
|
pkg.dependencies["opticore-feature-component"] = pkg.dependencies["opticore-feature-module"];
|
|
491
491
|
delete pkg.dependencies["opticore-feature-module"];
|
|
492
492
|
}
|
|
493
|
-
if (pkg.dependencies)
|
|
494
|
-
|
|
493
|
+
if (pkg.dependencies) {
|
|
494
|
+
pkg.dependencies = await UpdateOpticoreDeps(exec, pkg.dependencies);
|
|
495
|
+
}
|
|
496
|
+
if (pkg.devDependencies) {
|
|
497
|
+
pkg.devDependencies = await UpdateOpticoreDeps(exec, pkg.devDependencies);
|
|
498
|
+
}
|
|
495
499
|
fs3.writeFileSync(pkgPath, JSON.stringify(pkg, null, 4));
|
|
496
500
|
const lockPath = path2.join(escapedPath, "package-lock.json");
|
|
497
|
-
if (fs3.existsSync(lockPath))
|
|
501
|
+
if (fs3.existsSync(lockPath)) {
|
|
502
|
+
fs3.unlinkSync(lockPath);
|
|
503
|
+
}
|
|
498
504
|
await exec("npm uninstall ora ansi-colors cli-spinner dotenv gradient-string util tsup path fs node ts-node tslib @types/cli-spinner @clack/prompts");
|
|
499
505
|
cleanSpinner.succeed();
|
|
500
506
|
const npmSpinner = ora("Installing dependencies").start();
|
|
@@ -729,7 +735,8 @@ var PPostgres = (arg) => {
|
|
|
729
735
|
host: arg.host ?? dotenv3.config()?.parsed?.DATA_BASE_HOST,
|
|
730
736
|
user: arg.user ?? dotenv3.config()?.parsed?.DATA_BASE_USER,
|
|
731
737
|
password: arg.password ?? dotenv3.config()?.parsed?.DATA_BASE_PASSWORD,
|
|
732
|
-
port: arg.port ?? dotenv3.config()?.parsed?.DATA_BASE_PORT
|
|
738
|
+
port: arg.port ?? dotenv3.config()?.parsed?.DATA_BASE_PORT,
|
|
739
|
+
database: arg.database ?? dotenv3.config()?.parsed?.DATA_BASE_NAME
|
|
733
740
|
};
|
|
734
741
|
};
|
|
735
742
|
|