Commit c2d6a1a7 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Corrige le config de node et TS pour les deux paquets.

No related merge requests found
Showing with 10 additions and 5 deletions
+10 -5
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"description": "Runtime library for the composer package irstea/ng-model-generator-bundle.", "description": "Runtime library for the composer package irstea/ng-model-generator-bundle.",
"main": "dist/index.js", "main": "dist/index.js",
"directories": {}, "types": "dist/index.d.ts",
"scripts": { "scripts": {
"build": "tsc -p tsconfig.lib.json", "build": "tsc -p tsconfig.lib.json",
"lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix", "lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix",
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
], ],
"author": "Irstea - pôle IS", "author": "Irstea - pôle IS",
"license": "LGPL-3.0-or-later", "license": "LGPL-3.0-or-later",
"private": true,
"engines": { "engines": {
"node": "^10", "node": "^10",
"npm": ">=7" "npm": ">=7"
......
{ {
"name": "ng-model-generator-test", "name": "ng-model-generator-test",
"description": "test package for ng-model-generator",
"repository": "none",
"license": "MIT",
"dependencies": { "dependencies": {
"irstea-ng-model": "file:../.." "irstea-ng-model": "file:../.."
}, },
"private": true,
"scripts": { "scripts": {
"build": "tsc --pretty -noEmit" "build": "tsc --pretty -noEmit"
}, },
......
{ {
"$schema": "https://json.schemastore.org/tsconfig", "$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node10/tsconfig.json", "extends": "irstea-ng-model/tsconfig.json",
"compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"noEmit": true, "noEmit": true,
"rootDir": "./models" "rootDir": "./models"
......
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"noEmit": true, "noEmit": true,
"rootDir": "./src/ts" "rootDir": "./src/ts",
"experimentalDecorators": true
}, },
"include": ["src/ts/**/*.ts"], "include": ["src/ts/**/*.ts"],
"exclude": ["node_modules"] "exclude": ["dist", "node_modules"]
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment