ts-auto-guard
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -77,2 +77,3 @@ "use strict"; | ||
exports.processProject = exports.generate = exports.assertNever = void 0; | ||
var common_1 = require("@ts-morph/common"); | ||
var ts_morph_1 = require("ts-morph"); | ||
@@ -500,3 +501,4 @@ var GENERATED_WARNING = 'WARNING: Do not manually change this file.'; | ||
if (expectedType.indexOf('import') > -1) { | ||
expectedType = expectedType.replace(process.cwd(), '.'); | ||
var standardizedCwd = common_1.FileUtils.standardizeSlashes(process.cwd()); | ||
expectedType = expectedType.replace(standardizedCwd, '.'); | ||
} | ||
@@ -503,0 +505,0 @@ return (conditions && |
{ | ||
"name": "ts-auto-guard", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Generate type guard functions from TypeScript interfaces", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/rhys-vdw/ts-auto-guard", |
@@ -16,3 +16,3 @@ # ts-auto-guard | ||
``` | ||
$ yarn add -D ts-auto-guard | ||
yarn add -D ts-auto-guard | ||
``` | ||
@@ -23,3 +23,3 @@ | ||
``` | ||
$ npm install --save-dev ts-auto-guard | ||
npm install --save-dev ts-auto-guard | ||
``` | ||
@@ -32,3 +32,3 @@ | ||
```sh | ||
$ ts-auto-guard ./my-project/Person.ts | ||
ts-auto-guard ./my-project/Person.ts | ||
``` | ||
@@ -100,3 +100,3 @@ | ||
``` | ||
$ ts-auto-guard --export-all 'src/domain/*.ts' | ||
ts-auto-guard --export-all 'src/domain/*.ts' | ||
``` | ||
@@ -109,3 +109,3 @@ | ||
``` | ||
$ ts-auto-guard --debug | ||
ts-auto-guard --debug | ||
``` | ||
@@ -124,3 +124,3 @@ | ||
``` | ||
$ ts-auto-guard --shortcircuit="process.env.NODE_ENV === 'production'" | ||
ts-auto-guard --shortcircuit="process.env.NODE_ENV === 'production'" | ||
``` | ||
@@ -166,3 +166,3 @@ | ||
``` | ||
$ ts-auto-guard --import-guards="Guards" | ||
ts-auto-guard --import-guards="Guards" | ||
``` | ||
@@ -169,0 +169,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
149402
3106