Browse Source

feat: refactor update-stylecss & update-versions

Sarah Norris 3 years ago
parent
commit
cc19d95a4f
2 changed files with 4 additions and 5 deletions
  1. 1 2
      blockbase/package.json
  2. 3 3
      package.json

+ 1 - 2
blockbase/package.json

@@ -34,7 +34,6 @@
   ],
   "scripts": {
     "start": "chokidar \"sass/**/*.scss\" -c \"npm run build\" --initial",
-    "build": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js sass/ponyfill.scss assets/ponyfill.css --output-style expanded --indent-type tab --indent-width 1 --source-map true",
-    "stylecss-version": "node ../theme-utils.mjs lerna-update-stylecss"
+    "build": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js sass/ponyfill.scss assets/ponyfill.css --output-style expanded --indent-type tab --indent-width 1 --source-map true"
   }
 }

+ 3 - 3
package.json

@@ -26,9 +26,9 @@
 		"deploy:preview": "node ./theme-utils.mjs deploy-preview",
 		"build:zip": "node ./theme-utils.mjs build-com-zip",
 		"commit": "npx cz",
-		"prep-updates": "npx lerna version --conventional-commits --no-commit-hooks --no-push --yes --no-git-tag-version",
-		"update-stylecss": "npx lerna run stylecss-version --since",
-		"update-themes": "npm run prep-updates && npm run prep-css"
+		"update-versions": "npx lerna version --conventional-commits --no-commit-hooks --no-push --yes --no-git-tag-version",
+		"update-stylecss": "npx lerna exec --since -- node \\$LERNA_ROOT_PATH/theme-utils.mjs lerna-update-stylecss",
+		"update-themes": "npm run update-versions && npm run update-stylecss"
 	},
 	"devDependencies": {
 		"@commitlint/cli": "^15.0.0",