去除了编译过程中主动npm link
This commit is contained in:
parent
48d9a1d96a
commit
e7723a89b1
|
|
@ -25,7 +25,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.buildSchema = exports.analyzeEntities = void 0;
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const assert_1 = __importDefault(require("assert"));
|
||||
const child_process_1 = require("child_process");
|
||||
const fs_1 = require("fs");
|
||||
const fs_extra_1 = require("fs-extra");
|
||||
const lodash_1 = require("lodash");
|
||||
|
|
@ -1937,14 +1936,14 @@ function outputPackageJson(outputDir) {
|
|||
filename = path_1.default.join(outputDir, 'package.json');
|
||||
(0, fs_1.writeFileSync)(filename, JSON.stringify(pj), { flag: 'w' });
|
||||
// 执行npm link
|
||||
try {
|
||||
(0, child_process_1.execSync)('npm link', {
|
||||
/* try {
|
||||
execSync('npm link', {
|
||||
cwd: outputDir,
|
||||
});
|
||||
}
|
||||
catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
} */
|
||||
}
|
||||
function analyzeEntities(inputDir) {
|
||||
const files = (0, fs_1.readdirSync)(inputDir);
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { RunningContext } from "./Context";
|
|||
import { EntityDict } from "./Entity";
|
||||
export interface Aspect<ED extends EntityDict> {
|
||||
(params: any, context: RunningContext<ED>): Promise<any>;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4406,14 +4406,14 @@ function outputPackageJson(outputDir: string) {
|
|||
writeFileSync(filename, JSON.stringify(pj), { flag: 'w' });
|
||||
|
||||
// 执行npm link
|
||||
try {
|
||||
/* try {
|
||||
execSync('npm link', {
|
||||
cwd: outputDir,
|
||||
});
|
||||
}
|
||||
catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
} */
|
||||
}
|
||||
|
||||
export function analyzeEntities(inputDir: string) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue