@kubb/ts-codegen
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,3 +14,3 @@ import { createRequire } from 'module'; | ||
const node = ts.parseIsolatedEntityName(str, ts.ScriptTarget.Latest); | ||
return !!node && node.kind === ts.SyntaxKind.Identifier && node.originalKeywordKind === void 0; | ||
return !!node && node.kind === ts.SyntaxKind.Identifier && ts.identifierToKeywordKind(node.kind) === void 0; | ||
} | ||
@@ -231,3 +231,1 @@ function propertyName(name) { | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTupleDeclaration, createTypeAliasDeclaration, createUnionDeclaration, isValidIdentifier, modifier, print, questionToken }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@kubb/ts-codegen", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Generator ts-codegen", | ||
@@ -21,5 +21,3 @@ "repository": { | ||
"main": "dist/index.js", | ||
"unpkg": "dist/index.global.js", | ||
"module": "dist/index.js", | ||
"browser": "build/index.global.js", | ||
"types": "./dist/index.d.ts", | ||
@@ -56,3 +54,4 @@ "exports": { | ||
"engines": { | ||
"node": "^12.17.0 || ^14.13 || >=16.0.0" | ||
"node": ">=16", | ||
"pnpm": ">=8" | ||
}, | ||
@@ -68,4 +67,4 @@ "scripts": { | ||
"upgrade:local": "ncu --interactive --doctor", | ||
"typecheck": "tsc -p ./tsconfig.json --noEmit" | ||
"typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false" | ||
} | ||
} |
@@ -13,3 +13,4 @@ import ts from 'typescript' | ||
const node = ts.parseIsolatedEntityName(str, ts.ScriptTarget.Latest) | ||
return !!node && node.kind === ts.SyntaxKind.Identifier && node.originalKeywordKind === undefined | ||
return !!node && node.kind === ts.SyntaxKind.Identifier && ts.identifierToKeywordKind(node.kind as unknown as ts.Identifier) === undefined | ||
} | ||
@@ -16,0 +17,0 @@ |
@@ -1,2 +0,2 @@ | ||
export * from './codegen' | ||
export * from './print' | ||
export * from './codegen.ts' | ||
export * from './print.ts' |
Sorry, the diff of this file is not supported yet
33296
9
823