Skip to content

Commit

Permalink
Merge pull request #21971 from Yoast/fix-typescript-config
Browse files Browse the repository at this point in the history
Allow transpiling all js files inside yoastseo/src and allow import with asterisk *
  • Loading branch information
mhkuu authored Jan 22, 2025
2 parents e158b77 + 95634c3 commit df0bc85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/yoastseo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && yarn build:js && yarn build:types",
"build:js": "babel src --copy-files --source-maps --out-dir build",
"build:types": "tsc",
"clean": "rm -rf build",
"clean": "rm -rf build types",
"pretest": "grunt get-premium-configuration",
"test": "jest",
"lint": "eslint . --max-warnings 26"
Expand Down
6 changes: 4 additions & 2 deletions packages/yoastseo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"include": [
"src/**.js",
"src/**/*.js",
"vendor"
],
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": true,
"checkJs": false,
"outDir": "./types",
"module": "es2022",
"module": "esnext",
"moduleResolution": "bundler",
"strict": true,
"skipLibCheck": true,
}
Expand Down

0 comments on commit df0bc85

Please sign in to comment.