From 630cab3b2dbfbae0d12ee7a0f87c7be9f16af8d6 Mon Sep 17 00:00:00 2001 From: Matthieu Bosquet Date: Wed, 28 Jul 2021 21:57:24 +0100 Subject: [PATCH] Update TS config --- .nvmrc | 2 +- .tsconfig.json | 15 ++++++------ package-lock.json | 61 +++++++++++++++++++++++++++++++++++++---------- package.json | 6 ++--- 4 files changed, 61 insertions(+), 23 deletions(-) diff --git a/.nvmrc b/.nvmrc index 8351c19..b6a7d89 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14 +16 diff --git a/.tsconfig.json b/.tsconfig.json index 2278125..fe8431c 100644 --- a/.tsconfig.json +++ b/.tsconfig.json @@ -1,16 +1,17 @@ { - "extends": "@tsconfig/node14/tsconfig.json", + "extends": "@tsconfig/node12/tsconfig.json", "compilerOptions": { "declaration": true, + "incremental": true, + "inlineSources": true, + "newLine": "lf", + "noUnusedLocals": true, "outDir": "dist", + "preserveConstEnums": true, "sourceMap": true, - "noUnusedLocals": true, - "noUnusedParameters": true + "stripInternal": true }, "include": [ "src/index.ts" - ], - "exclude": [ - "node_modules" ] -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 96fd2a8..6497dd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,25 +1,62 @@ { "name": "ontl", - "version": "0.1.10", - "lockfileVersion": 1, + "version": "0.1.12", + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "ontl", + "version": "0.1.12", + "license": "MIT", + "devDependencies": { + "@tsconfig/node12": "^1.0.9", + "@types/node": "^16.4.6", + "typescript": "^4.3.5" + } + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", + "dev": true + }, + "node_modules/@types/node": { + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.6.tgz", + "integrity": "sha512-FKyawK3o5KL16AwbeFajen8G4K3mmqUrQsehn5wNKs8IzlKHE8TfnSmILXVMVziAEcnB23u1RCFU1NT6hSyr7Q==", + "dev": true + }, + "node_modules/typescript": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz", + "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + }, "dependencies": { - "@tsconfig/node14": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.0.tgz", - "integrity": "sha512-RKkL8eTdPv6t5EHgFKIVQgsDapugbuOptNd9OOunN/HAkzmmTnZELx1kNCK0rSdUYGmiFMM3rRQMAWiyp023LQ==", + "@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", "dev": true }, "@types/node": { - "version": "14.14.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.14.tgz", - "integrity": "sha512-UHnOPWVWV1z+VV8k6L1HhG7UbGBgIdghqF3l9Ny9ApPghbjICXkUJSd/b9gOgQfjM1r+37cipdw/HJ3F6ICEnQ==", + "version": "16.4.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.6.tgz", + "integrity": "sha512-FKyawK3o5KL16AwbeFajen8G4K3mmqUrQsehn5wNKs8IzlKHE8TfnSmILXVMVziAEcnB23u1RCFU1NT6hSyr7Q==", "dev": true }, "typescript": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz", - "integrity": "sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz", + "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==", "dev": true } } diff --git a/package.json b/package.json index ad19019..1126301 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ }, "homepage": "https://github.com/matthieubosquet/ontologies#readme", "devDependencies": { - "@tsconfig/node14": "^1.0.0", - "@types/node": "^14.14.14", - "typescript": "^4.1.3" + "@tsconfig/node12": "^1.0.9", + "@types/node": "^16.4.6", + "typescript": "^4.3.5" } }