Skip to content

Commit

Permalink
fix(template): fix package.json dev script for typescript (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec authored Jul 7, 2020
1 parent 9a7c2ac commit 1f64e5a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cna-template/template/nuxt/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = {
}
if (typescript) {
for (const key of Object.keys(scripts)) {
scripts[key] = scripts[key].replace(/^nuxt /, 'nuxt-ts ')
scripts[key] = scripts[key].replace(/^nuxt( |$)/, 'nuxt-ts$1')
}
}
return pkg
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nuxt-app/test/snapshots/index.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ Generated by [AVA](https://avajs.dev).
private: true,
scripts: {
build: 'nuxt-ts build',
dev: 'nuxt',
dev: 'nuxt-ts',
export: 'nuxt-ts export',
serve: 'nuxt-ts serve',
start: 'nuxt-ts start',
Expand Down
Binary file modified packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.

0 comments on commit 1f64e5a

Please # to comment.