Skip to content

Commit

Permalink
fix: fix package deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Jul 3, 2018
1 parent d8fffc0 commit 685d3bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { copySync } from 'fs-extra';

async function build() {
// copy git folder to dist folder for semantic-release
copySync('.git', join(process.cwd(), 'dist/package-dist/.git'));
copySync('.git', join(process.cwd(), 'dist/.git'));
// copy files to distribution folder
copySync(
'package.json',
join(process.cwd(), 'dist/package-dist/package.json'),
join(process.cwd(), 'dist/package.json'),
);
copySync('README.md', join(process.cwd(), 'dist/package-dist/README.md'));
copySync('LICENSE', join(process.cwd(), 'dist/package-dist/LICENSE'));
copySync('README.md', join(process.cwd(), 'dist/README.md'));
copySync('LICENSE', join(process.cwd(), 'dist/LICENSE'));
}

build()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test:prod": "npm run test -- --coverage --no-cache",
"commit": "git-cz",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "cd dist/package-dist && semantic-release"
"semantic-release": "cd dist && semantic-release"
},
"dependencies": {
"lodash": "^4.17.10",
Expand Down

0 comments on commit 685d3bf

Please sign in to comment.