canonical-web-and-design / generator-canonical-webteam

Generator scripts for creating and maintaining Canonical webteam projects
Other
6 stars 11 forks source link

Updating to the latest version brakes run #36

Closed anthonydillon closed 7 years ago

anthonydillon commented 7 years ago

When updating ./run on a project. When you overwrite the package.json it results in a malformed file:

{
  "name": "cn.ubuntu.com",
  "description": "Django website for cn.ubuntu.com",
  "scripts": {
    "test": "sass-lint static/**/*.scss --verbose --no-exit",
    "clean": "rm -rf node_modules yarn-error.log static/css *.log *.sqlite _site/ build/ .jekyll-metadata",
    "watch": "node-sass --include-path node_modules --source-map true --watch static/sass --output static/css",
    "build": "node-sass --include-path node_modules static/sass --output static/css",
    "//": "Scripts updated by generator-canonical-webteam@0.3.3"
  },
  "author": "Canonical webteam",
  "devDependencies": {
    "sass-lint": "^1.10.2",
    "node-sass": "^4.5.3",
    "ubuntu-vanilla-theme": "0.0.35",
    "//": "Dependencies updated by generator-canonical-webteam@0.3.3"
  }
}
nottrobin commented 7 years ago

Fixed by https://github.com/canonical-webteam/generator-canonical-webteam/commit/96000cf57f9517745a73c158ab508be61ba1a7a7#diff-04f8ece5781eecfa64e2f6ce11be0770