Skip to content

Commit

Permalink
@rollup/plugin-typescript bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Jan 28, 2022
1 parent bb08c70 commit 27e319c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
6 changes: 0 additions & 6 deletions lib/runtime/tsconfig.prod.json

This file was deleted.

2 changes: 1 addition & 1 deletion script/build-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const runtimeDts = extractorConfig.publicTrimmedFilePath
fs.removeSync(path.join(__dirname, '../dist/runtime'))
fs.appendFileSync(runtimeDts, '\nexport as namespace emnapi;\n', 'utf8')

const runtimeTsconfigPath = path.join(__dirname, '../lib/runtime/tsconfig.prod.json')
const runtimeTsconfigPath = path.join(__dirname, '../tsconfig.prod.json')

/**
* @param {boolean=} minify
Expand Down
21 changes: 21 additions & 0 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "ESNext",
"downlevelIteration": true,
"removeComments": true,
"declaration": false,
"types": [],
"lib": [
"ES5",
"ES2015",
"ES2020.BigInt",
"ES2021.WeakRef",
"DOM"
]
},
"include": [
"./lib/typings/napi.d.ts",
"./lib/runtime/**/*.ts"
]
}

0 comments on commit 27e319c

Please sign in to comment.