Skip to content

Commit

Permalink
Fix tsconfig for protoc-gen-es (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm authored Apr 2, 2024
1 parent bc67371 commit 2b2861b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/protoc-gen-es/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"clean": "rm -rf ./dist/cjs/*",
"build": "../../node_modules/typescript/bin/tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs"
"build": "../../node_modules/typescript/bin/tsc --project tsconfig.json --outDir ./dist/cjs"
},
"preferUnplugged": true,
"dependencies": {
Expand Down
7 changes: 6 additions & 1 deletion packages/protoc-gen-es/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"files": ["src/protoc-gen-es-plugin.ts"],
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"resolveJsonModule": true
// We import the plugin's version number from package.json
"resolveJsonModule": true,
// This package is CommonJS
"verbatimModuleSyntax": false,
"module": "CommonJS",
"moduleResolution": "Node10"
}
}
2 changes: 1 addition & 1 deletion packages/protoplugin-example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": ["src/**/*.ts", "test/*.ts"],
"compilerOptions": {
"target": "es2017",
"moduleResolution": "Node",
"moduleResolution": "Node10",
"esModuleInterop": false,
"resolveJsonModule": true,
"strict": true,
Expand Down

0 comments on commit 2b2861b

Please sign in to comment.