From 4277f4a68f08198a2bf84b9afdec3ab7d7b101a0 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 2 Aug 2021 16:04:23 +0100 Subject: [PATCH] Fix dist output The jest.config.ts file was causing unintended changes to the dist folder Signed-off-by: James Taylor --- .../rest-api-typescript/.eslintrc.json | 13 ++++++++++--- .../rest-api-typescript/tsconfig.json | 5 ++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/asset-transfer-basic/rest-api-typescript/.eslintrc.json b/asset-transfer-basic/rest-api-typescript/.eslintrc.json index 0eaa9dde..7fcdea66 100644 --- a/asset-transfer-basic/rest-api-typescript/.eslintrc.json +++ b/asset-transfer-basic/rest-api-typescript/.eslintrc.json @@ -10,8 +10,7 @@ "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 12, - "sourceType": "module", - "project": "./tsconfig.json" + "sourceType": "module" }, "plugins": [ "@typescript-eslint" @@ -23,5 +22,13 @@ "argsIgnorePattern": "^_" } ] - } + }, + "overrides": [ + { + "files": ["src/**/*.ts"], + "parserOptions": { + "project": ["./tsconfig.json"] + } + } + ] } diff --git a/asset-transfer-basic/rest-api-typescript/tsconfig.json b/asset-transfer-basic/rest-api-typescript/tsconfig.json index c0e23f1c..cb4a4a82 100644 --- a/asset-transfer-basic/rest-api-typescript/tsconfig.json +++ b/asset-transfer-basic/rest-api-typescript/tsconfig.json @@ -68,5 +68,8 @@ /* Advanced Options */ "skipLibCheck": true, /* Skip type checking of declaration files. */ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ - } + }, + "include": [ + "src/" + ] }