From dee8446facd5d40008d42c1bb28c254cbce137d5 Mon Sep 17 00:00:00 2001 From: Artemii Kravtsov Date: Wed, 3 Mar 2021 17:15:09 +0200 Subject: [PATCH] TypeScript fix by changing package.json; bump version --- package.json | 6 +++--- tsconfig.json | 25 +++++++++++++------------ 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 1cbb868..61cc123 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "immudb-node", - "version": "1.0.10-rc.2", + "version": "1.0.10-rc.3", "description": "Node ts client for immudb", "directories": { "src": "src", "test": "tests" }, - "main": "src/client.ts", - "types": "types/index.d.ts", + "main": "dist/src/client.js", + "types": "dist/src/client.d.ts", "scripts": { "prepare": "npm run build", "build": "tsc", diff --git a/tsconfig.json b/tsconfig.json index 8be411a..68ca22d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,18 @@ { "compilerOptions": { - "target": "ES2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ - "strict": true, /* Enable all strict type-checking options. */ - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - "skipLibCheck": true, /* Skip type checking of declaration files. */ - "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */ - "sourceMap": true, - "declaration": true, - "outDir": "dist", - // "allowJs": true, - "baseUrl": "src", - // "moduleResolution": "classic" + "target": "ES2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ + "strict": true, /* Enable all strict type-checking options. */ + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + "skipLibCheck": true, /* Skip type checking of declaration files. */ + "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */ + "sourceMap": true, + "declaration": true, + "outDir": "./dist", + "rootDir": "./src", + // "allowJs": true, + "baseUrl": "src", + // "moduleResolution": "classic" }, "files": [ "./node_modules/@types/mocha/index.d.ts",