Skip to content

Commit

Permalink
fix: Correct prepublish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Apr 27, 2020
1 parent b2a5421 commit 3b081de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/set_strict.js
Expand Up @@ -10,9 +10,8 @@ const file = join(__dirname, '../src/lib/utils/index.ts');
const isStrict = process.argv[2] === 'true'

fs.readFile(file, { encoding: 'utf-8'})
.then(text => fs.writeFile(file, text.replace(/type Strict =.*/, `type Strict = ${isStrict};`)))
.then(text => fs.writeFile(file, text.replace(/type InternalOnly =.*/, `type InternalOnly = ${isStrict};`)))
.catch(reason => {
console.error(reason);
process.exit(1);
});

0 comments on commit 3b081de

Please sign in to comment.