Skip to content

Commit

Permalink
fix(build-directory): aligned with the build-dir already being relati…
Browse files Browse the repository at this point in the history
…ve to .

for #1
  • Loading branch information
travi committed Apr 1, 2019
1 parent c9e0f42 commit e1200ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scaffolder.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default function ({buildDirectory}) {
return {
scripts: {
deploy: `netlify deploy --site=$NETLIFY_SITE_ID --auth=$NETLIFY_ACCESS_TOKEN --dir=./${buildDirectory}/ --prod`
deploy: `netlify deploy --site=$NETLIFY_SITE_ID --auth=$NETLIFY_ACCESS_TOKEN --dir=${buildDirectory}/ --prod`
},
environmentVariables: {ci: ['NETLIFY_SITE_ID', 'NETLIFY_ACCESS_TOKEN']},
devDependencies: ['netlify-cli'],
Expand Down
2 changes: 1 addition & 1 deletion test/unit/scaffolder-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ suite('scaffolder', () => {

assert.equal(
results.scripts.deploy,
`netlify deploy --site=$NETLIFY_SITE_ID --auth=$NETLIFY_ACCESS_TOKEN --dir=./${buildDirectory}/ --prod`
`netlify deploy --site=$NETLIFY_SITE_ID --auth=$NETLIFY_ACCESS_TOKEN --dir=${buildDirectory}/ --prod`
);
assert.deepEqual(results.devDependencies, ['netlify-cli']);
});
Expand Down

0 comments on commit e1200ae

Please sign in to comment.