Skip to content

Commit

Permalink
disable warning for --experimental-strip-types
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Nov 17, 2024
1 parent 198df41 commit b47fba3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main([command, ...argv]) {
process.exit(1)
}

// Only a few environment variables are exposed to install/postinstall
// Only a few environment variables are exposed to install/postinstall
// scripts when installing dependencies from NPM.
const strictEnv = pick(process.env, [
'PATH',
Expand Down Expand Up @@ -103,7 +103,10 @@ async function main([command, ...argv]) {
}
} else {
runner = 'node'
runnerArgs = ['--experimental-strip-types']
runnerArgs = [
'--experimental-strip-types',
'--disable-warning=ExperimentalWarning',
]
}

const commandPath = path.join(commandDir, 'src/main.ts')
Expand Down

0 comments on commit b47fba3

Please sign in to comment.