From c2d6a1a7098093249bca628e6763349baa608786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Wed, 17 Feb 2021 16:05:05 +0100 Subject: [PATCH] Corrige le config de node et TS pour les deux paquets. --- package.json | 3 ++- tests/Fixtures/package.json | 4 ++++ tests/Fixtures/tsconfig.json | 3 +-- tsconfig.json | 5 +++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index eb21727..c5f2ecb 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Runtime library for the composer package irstea/ng-model-generator-bundle.", "main": "dist/index.js", - "directories": {}, + "types": "dist/index.d.ts", "scripts": { "build": "tsc -p tsconfig.lib.json", "lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix", @@ -21,6 +21,7 @@ ], "author": "Irstea - pôle IS", "license": "LGPL-3.0-or-later", + "private": true, "engines": { "node": "^10", "npm": ">=7" diff --git a/tests/Fixtures/package.json b/tests/Fixtures/package.json index a08e386..75f561c 100644 --- a/tests/Fixtures/package.json +++ b/tests/Fixtures/package.json @@ -1,8 +1,12 @@ { "name": "ng-model-generator-test", + "description": "test package for ng-model-generator", + "repository": "none", + "license": "MIT", "dependencies": { "irstea-ng-model": "file:../.." }, + "private": true, "scripts": { "build": "tsc --pretty -noEmit" }, diff --git a/tests/Fixtures/tsconfig.json b/tests/Fixtures/tsconfig.json index eb934ea..628adcc 100644 --- a/tests/Fixtures/tsconfig.json +++ b/tests/Fixtures/tsconfig.json @@ -1,9 +1,8 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@tsconfig/node10/tsconfig.json", + "extends": "irstea-ng-model/tsconfig.json", - "compileOnSave": false, "compilerOptions": { "noEmit": true, "rootDir": "./models" diff --git a/tsconfig.json b/tsconfig.json index 03ff598..d3458c6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,9 +6,10 @@ "compileOnSave": false, "compilerOptions": { "noEmit": true, - "rootDir": "./src/ts" + "rootDir": "./src/ts", + "experimentalDecorators": true }, "include": ["src/ts/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["dist", "node_modules"] } -- GitLab