light-generator
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -36,4 +36,4 @@ "use strict"; | ||
// clean template directory first | ||
if (fs_1.dirExistsSync(this.pkgRootName)) { | ||
await fse.remove(this.pkgRootName); | ||
if (fs_1.dirExistsSync(path_1.join(this.tmpPath, this.pkgRootName))) { | ||
await fse.remove(path_1.join(this.tmpPath, this.pkgRootName)); | ||
} | ||
@@ -63,2 +63,2 @@ const cmd = `${this.npmClient} pack ${this.templateUri}@${remoteVersion} ${this.registryUrl}| mkdir ${this.pkgRootName}`; | ||
exports.NpmPatternGenerator = NpmPatternGenerator; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTnBtUGF0dGVybkdlbmVyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9nZW5lcmF0b3IvTnBtUGF0dGVybkdlbmVyYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSx1REFBb0Q7QUFFcEQsaURBQXlDO0FBQ3pDLCtCQUE0QjtBQUM1Qiw4Q0FBZ0M7QUFDaEMsbUNBQTJDO0FBQzNDLHlDQUEyQjtBQUMzQixtQ0FBd0Q7QUFFeEQsTUFBYSxtQkFBb0IsU0FBUSxpQ0FBZTtJQU10RCxZQUFZLE9BQTRCO1FBQ3RDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNmLElBQUksQ0FBQyxTQUFTLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQztRQUNuQyxJQUFJLENBQUMsV0FBVyxHQUFHLE9BQU8sQ0FBQyxXQUFXO1lBQ3BDLENBQUMsQ0FBQyxhQUFhLEdBQUcsT0FBTyxDQUFDLFdBQVc7WUFDckMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztRQUNQLElBQUksQ0FBQyxPQUFPLEdBQUcsZ0JBQVMsRUFBRSxDQUFDO1FBQzNCLE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HQUFHLGNBQWMseUJBQXlCLENBQUMsQ0FBQzthQUM3RDtTQUNGO0lBQ0gsQ0FBQztJQUVELEtBQUssQ0FBQyxpQkFBaUI7UUFDckIsTUFBTSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUM7UUFDeEIsT0FBTyxLQUFLLENBQUMsaUJBQWlCLEVBQUUsQ0FBQztJQUNuQyxDQUFDO0lBRUQsZUFBZTtRQUNiLE9BQU8sV0FBSSxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsSUFBSSxDQUFDLFdBQVcsRUFBRSxTQUFTLENBQUMsQ0FBQztJQUN6RCxDQUFDO0NBQ0Y7QUExREQsa0RBMERDIn0= |
1.5.1 / 2020-02-10 | ||
================== | ||
* fix: remove relative path (#17) | ||
1.5.0 / 2020-02-05 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "light-generator", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "light generator for generate a boilerplate", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -40,4 +40,4 @@ import { CommonGenerator } from './CommonGenerator'; | ||
// clean template directory first | ||
if (dirExistsSync(this.pkgRootName)) { | ||
await fse.remove(this.pkgRootName); | ||
if (dirExistsSync(join(this.tmpPath, this.pkgRootName))) { | ||
await fse.remove(join(this.tmpPath, this.pkgRootName)); | ||
} | ||
@@ -44,0 +44,0 @@ const cmd = `${this.npmClient} pack ${this.templateUri}@${remoteVersion} ${this.registryUrl}| mkdir ${this.pkgRootName}`; |
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
102826