Skip to content

Commit

Permalink
Add tsconfig.json for @babel/helpers/src/helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 16, 2024
1 parent db3e9a6 commit 8cfe620
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Makefile.source.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ target["prepublish-prepare-dts-no-clean"] = function () {
target["tscheck"] = function () {
target["generate-tsconfig"]();
node(["scripts/parallel-tsc/tsc.js", "."]);
target["tscheck-helpers"]();
};

target["tscheck-helpers"] = function () {
yarn(["tsc", "-p", "./packages/babel-helpers/src/helpers/tsconfig.json"]);
};

target["clean-ts"] = function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/scripts/generate-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { gzipSync } from "zlib";
import { IS_BABEL_8 } from "$repo-utils";

const HELPERS_FOLDER = new URL("../src/helpers", import.meta.url);
const IGNORED_FILES = new Set(["package.json"]);
const IGNORED_FILES = new Set(["package.json", "tsconfig.json"]);

export default async function generateHelpers() {
let output = `/*
Expand Down
23 changes: 23 additions & 0 deletions packages/babel-helpers/src/helpers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"rootDir": ".",
"target": "ESNext",
"module": "preserve",
"lib": ["ESNext"],
"declaration": false,
"noEmit": true,
"moduleResolution": "Bundler",
"esModuleInterop": true,
"isolatedModules": true,
"allowImportingTsExtensions": true,
"strict": true
},
"include": ["./*.ts"],
"exclude": [
"./applyDecs2305.ts",
"./applyDecs2311.ts",
"./construct.ts",
"./setFunctionName.ts",
"./usingCtx.ts"
]
}
6 changes: 5 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@
"noImplicitAny": true,
"strictBindCallApply": true,
"incremental": true
}
},
"exclude": ["./packages/babel-helpers/src/helpers/**/*"],
"references": [{
"path": "./packages/babel-helpers/src/helpers/**/tsconfig.json"
}]
}

0 comments on commit 8cfe620

Please sign in to comment.