From 82adaaf853c24dc7368566017e1bf102659dabda Mon Sep 17 00:00:00 2001 From: hbofolts1 Date: Thu, 31 Aug 2023 10:23:51 -0700 Subject: [PATCH] build: prepare for 3.1.2 release --- src/index.ts | 3 +-- tsconfig.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index e3462e3..f0a6ec3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,6 @@ import path from 'path'; import ts from 'typescript'; import * as tplant from './tplant'; import { encode } from 'plantuml-encoder'; -import pjson = require("../package.json"); const AVAILABLE_PLANTUML_EXTENSIONS: string[] = ['svg', 'png', 'txt']; @@ -16,7 +15,7 @@ const AVAILABLE_PLANTUML_EXTENSIONS: string[] = ['svg', 'png', 'txt']; const plantuml = require("node-plantuml"); commander - .version(pjson.version) + .version("3.1.2") .option('-i, --input ', 'Define the path of the Typescript file') .option('-e, --exclude ', 'File(s) to ignore') .option('-o, --output ', 'Define the path of the output file. If not defined, it\'ll output on the STDOUT') diff --git a/tsconfig.json b/tsconfig.json index 7477a4d..b3fa7aa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./dist/index.js", /* Concatenate and emit output to single file. */ "outDir": "./dist", /* Redirect output structure to the directory. */ - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */ "removeComments": true, /* Do not emit comments to output. */ // "noEmit": true, /* Do not emit outputs. */ @@ -28,7 +28,6 @@ "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - "resolveJsonModule": true, /* Additional Checks */ "noUnusedLocals": true, /* Report errors on unused locals. */ "noUnusedParameters": true, /* Report errors on unused parameters. */