Skip to content

Commit

Permalink
Fix copying files (#11904)
Browse files Browse the repository at this point in the history
Check for license was missing condition
  • Loading branch information
John Kleinschmidt authored and codebytere committed Feb 12, 2018
1 parent d0aa740 commit 75ce746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/publish-to-npm.js
Expand Up @@ -50,7 +50,7 @@ new Promise((resolve, reject) => {
tempDir = dirPath
// copy files from `/npm` to temp directory
files.forEach((name) => {
const noThirdSegment = name === 'README.md' || 'LICENSE'
const noThirdSegment = name === 'README.md' || name === 'LICENSE'
fs.writeFileSync(
path.join(tempDir, name),
fs.readFileSync(path.join(__dirname, '..', noThirdSegment ? '' : 'npm', name))
Expand Down

0 comments on commit 75ce746

Please sign in to comment.