From ea444560bd354f6e8ece816580b0ff74b943e871 Mon Sep 17 00:00:00 2001 From: melloware Date: Thu, 16 Nov 2023 15:39:33 -0500 Subject: [PATCH] Moved tsconfig.json from root folder --- {api-generator => api-scripts}/build-apidoc.js | 0 {api-generator => api-scripts}/build-webtypes.js | 0 tsconfig.json => api-scripts/tsconfig.json | 4 ++-- package.json | 10 +++++----- 4 files changed, 7 insertions(+), 7 deletions(-) rename {api-generator => api-scripts}/build-apidoc.js (100%) rename {api-generator => api-scripts}/build-webtypes.js (100%) rename tsconfig.json => api-scripts/tsconfig.json (81%) diff --git a/api-generator/build-apidoc.js b/api-scripts/build-apidoc.js similarity index 100% rename from api-generator/build-apidoc.js rename to api-scripts/build-apidoc.js diff --git a/api-generator/build-webtypes.js b/api-scripts/build-webtypes.js similarity index 100% rename from api-generator/build-webtypes.js rename to api-scripts/build-webtypes.js diff --git a/tsconfig.json b/api-scripts/tsconfig.json similarity index 81% rename from tsconfig.json rename to api-scripts/tsconfig.json index 362806199d..80f5cf6051 100644 --- a/tsconfig.json +++ b/api-scripts/tsconfig.json @@ -15,6 +15,6 @@ "jsx": "preserve", "incremental": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules", "dist"] + "include": ["../next-env.d.ts", "../**/*.ts", "../**/*.tsx"], + "exclude": ["../node_modules", "../dist"] } diff --git a/package.json b/package.json index 6ee756b42d..dbcd94ee74 100644 --- a/package.json +++ b/package.json @@ -14,16 +14,16 @@ "build:api": "npm run apiwebtypes && npm run apidoc", "build:check": "npm run lint && npm run format:check && npm run type:check && npm run security:check && (NODE_ENV=test npm run test:check)", "security:check": "npm audit --production --audit-level high", - "format": "prettier --write \"{components,pages,service,api-generator}/**/*.{js,ts,tsx,d.ts}\"", - "format:check": "prettier --check \"{components,pages,service,api-generator}/**/*.{js,ts,tsx,d.ts}\"", + "format": "prettier --write \"{components,pages,service,api-scripts}/**/*.{js,ts,tsx,d.ts}\"", + "format:check": "prettier --check \"{components,pages,service,api-scripts}/**/*.{js,ts,tsx,d.ts}\"", "lint": "next lint --max-warnings=0 --ignore-path .gitignore .", "lint:fix": "next lint --fix --ignore-path .gitignore .", - "type:check": "tsc", + "type:check": "tsc -p ./api-scripts/tsconfig.json", "test": "jest --watch --coverage --silent", "test:check": "jest --watchAll=false --coverage --silent", "test:debug": "jest --watch --coverage", - "apidoc": "node ./api-generator/build-apidoc.js", - "apiwebtypes": "node ./api-generator/build-webtypes.js" + "apidoc": "node ./api-scripts/build-apidoc.js", + "apiwebtypes": "node ./api-scripts/build-webtypes.js" }, "dependencies": { "@docsearch/react": "3.5.2",