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 34cece4ab5..34e3a90e6e 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",