@nocobase/server
Advanced tools
Comparing version 0.7.0-alpha.18 to 0.7.0-alpha.20
@@ -10,4 +10,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import chalk from 'chalk'; | ||
export default ({ app, cliArgs }) => __awaiter(void 0, void 0, void 0, function* () { | ||
const [opts] = cliArgs; | ||
if (!(opts === null || opts === void 0 ? void 0 : opts.clean) || !(opts === null || opts === void 0 ? void 0 : opts.force)) { | ||
const tables = yield app.db.sequelize.getQueryInterface().showAllTables(); | ||
if (tables.includes('collections')) { | ||
console.log(); | ||
console.log(); | ||
console.log(chalk.yellow('NocoBase is already installed. To reinstall, please execute:')); | ||
console.log(); | ||
let command = 'yarn nocobase install -f'; | ||
console.log(chalk.yellow(command)); | ||
console.log(); | ||
console.log(); | ||
return; | ||
} | ||
} | ||
yield app.install({ | ||
@@ -14,0 +29,0 @@ cliArgs, |
@@ -11,5 +11,23 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
exports.default = ({ app, cliArgs }) => __awaiter(void 0, void 0, void 0, function* () { | ||
const [opts] = cliArgs; | ||
if (!(opts === null || opts === void 0 ? void 0 : opts.clean) || !(opts === null || opts === void 0 ? void 0 : opts.force)) { | ||
const tables = yield app.db.sequelize.getQueryInterface().showAllTables(); | ||
if (tables.includes('collections')) { | ||
console.log(); | ||
console.log(); | ||
console.log(chalk_1.default.yellow('NocoBase is already installed. To reinstall, please execute:')); | ||
console.log(); | ||
let command = 'yarn nocobase install -f'; | ||
console.log(chalk_1.default.yellow(command)); | ||
console.log(); | ||
console.log(); | ||
return; | ||
} | ||
} | ||
yield app.install({ | ||
@@ -16,0 +34,0 @@ cliArgs, |
{ | ||
"name": "@nocobase/server", | ||
"version": "0.7.0-alpha.18", | ||
"version": "0.7.0-alpha.20", | ||
"main": "lib/index.js", | ||
@@ -21,6 +21,6 @@ "types": "./lib/index.d.ts", | ||
"@koa/router": "^9.4.0", | ||
"@nocobase/acl": "0.7.0-alpha.18", | ||
"@nocobase/actions": "0.7.0-alpha.18", | ||
"@nocobase/database": "0.7.0-alpha.18", | ||
"@nocobase/resourcer": "0.7.0-alpha.18", | ||
"@nocobase/acl": "0.7.0-alpha.20", | ||
"@nocobase/actions": "0.7.0-alpha.20", | ||
"@nocobase/database": "0.7.0-alpha.20", | ||
"@nocobase/resourcer": "0.7.0-alpha.20", | ||
"commander": "^8.1.0", | ||
@@ -35,3 +35,3 @@ "dotenv": "^8.2.0", | ||
}, | ||
"gitHead": "400167fe0cd2b29337bd4e2873ecc6894147f5f8" | ||
"gitHead": "d2e0cbdb5d26ba66e87a9d7660b10f3ec30a3c4b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200793
2243
+ Added@nocobase/acl@0.7.0-alpha.20(transitive)
+ Added@nocobase/actions@0.7.0-alpha.20(transitive)
+ Added@nocobase/database@0.7.0-alpha.20(transitive)
+ Added@nocobase/resourcer@0.7.0-alpha.20(transitive)
+ Added@nocobase/utils@0.7.0-alpha.20(transitive)
- Removed@nocobase/acl@0.7.0-alpha.18(transitive)
- Removed@nocobase/actions@0.7.0-alpha.18(transitive)
- Removed@nocobase/database@0.7.0-alpha.18(transitive)
- Removed@nocobase/resourcer@0.7.0-alpha.18(transitive)
- Removed@nocobase/utils@0.7.0-alpha.18(transitive)
Updated@nocobase/acl@0.7.0-alpha.20