kmore-cli
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# 3.1.0 (2021-04-25) | ||
### Features | ||
* **kmore-cli:** current path if opts.project is relative file ([aaea903](https://github.com/waitingsong/kmore/commit/aaea9034f1e0b45062bc97efdd85917bbbe94917)) | ||
# 3.0.0 (2021-04-23) | ||
@@ -8,0 +19,0 @@ |
@@ -7,3 +7,3 @@ #!/usr/bin/env node | ||
* | ||
* @version 2.0.5 | ||
* @version 3.0.0 | ||
* @author waiting | ||
@@ -92,3 +92,9 @@ * @license MIT | ||
} | ||
if (!opts.project) { | ||
if (opts.project) { | ||
const project = opts.project.replace(/\\/ug, '/'); | ||
if (project.startsWith('.') || !project.includes('/')) { | ||
opts.project = `${process.cwd()}/${project}`; | ||
} | ||
} | ||
else { | ||
const tsopts = { | ||
@@ -95,0 +101,0 @@ cache: tsconfigResolver.CacheStrategy.Directory, |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 2.0.5 | ||
* @version 3.0.0 | ||
* @author waiting | ||
@@ -52,3 +52,9 @@ * @license MIT | ||
} | ||
if (!opts.project) { | ||
if (opts.project) { | ||
const project = opts.project.replace(/\\/ug, '/'); | ||
if (project.startsWith('.') || !project.includes('/')) { | ||
opts.project = `${process.cwd()}/${project}`; | ||
} | ||
} | ||
else { | ||
const tsopts = { | ||
@@ -55,0 +61,0 @@ cache: tsconfigResolver.CacheStrategy.Directory, |
@@ -26,3 +26,9 @@ import { pathResolve, readFileLineRx, } from '@waiting/shared-core'; | ||
} | ||
if (!opts.project) { | ||
if (opts.project) { | ||
const project = opts.project.replace(/\\/ug, '/'); | ||
if (project.startsWith('.') || !project.includes('/')) { | ||
opts.project = `${process.cwd()}/${project}`; | ||
} | ||
} | ||
else { | ||
const tsopts = { | ||
@@ -29,0 +35,0 @@ cache: CacheStrategy.Directory, |
{ | ||
"name": "kmore-cli", | ||
"author": "waiting", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Command line to generate dicts from ts source files for kmore", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"@waiting/shared-types-dev": "2", | ||
"kmore-types": "^3.0.0", | ||
"kmore-types": "^3.1.0", | ||
"rxjs": "6", | ||
@@ -98,3 +98,3 @@ "rxwalker": "3", | ||
}, | ||
"gitHead": "35a1501ffd04f87eae83654fcf8c09a449b1ab88" | ||
"gitHead": "a435d32072f63ce3dec5e7c8d2c789805ee480c8" | ||
} |
@@ -40,3 +40,9 @@ import { | ||
if (! opts.project) { | ||
if (opts.project) { | ||
const project = opts.project.replace(/\\/ug, '/') | ||
if (project.startsWith('.') || ! project.includes('/')) { | ||
opts.project = `${process.cwd()}/${project}` | ||
} | ||
} | ||
else { | ||
const tsopts: TsConfigResolverOptions = { | ||
@@ -43,0 +49,0 @@ cache: CacheStrategy.Directory, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
55957
1309
0
Updatedkmore-types@^3.1.0