@storepress/create-plugin-html 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -36,9 +36,9 @@ module.exports = {
36
36
  attributes: {},
37
37
  license: 'GPL-2.0-or-later',
38
38
  customScripts: {
39
- 'postinstall': 'git init -q && rm -rf ./.husky && npx husky init && echo "npx lint-staged" > .husky/pre-commit',
39
+ 'postinstall': 'git init -q && rimraf .husky && npx husky init && echo "npx lint-staged" > .husky/pre-commit',
40
40
 
41
- 'prebuild': 'rm -rf ./build',
41
+ 'prebuild': 'rimraf build',
42
42
  'build': 'npm run start -- --no-watch && wp-scripts build --webpack-copy-php --experimental-modules',
43
43
 
44
44
  'check-engines': 'wp-scripts check-engines',
@@ -62,7 +62,7 @@ module.exports = {
62
62
 
63
63
  'packages-update': 'wp-scripts packages-update',
64
64
 
65
- 'prepackage': 'rm -rf ./${npm_package_name}.zip && npm run build',
65
+ 'prepackage': 'rimraf ${npm_package_name}.zip && npm run build',
66
66
  'package': './tools/package.js',
67
67
 
68
68
  'plugin-zip': 'npm run package -- --zip',
@@ -70,7 +70,7 @@ module.exports = {
70
70
  'test:e2e': 'wp-scripts test-e2e',
71
71
  'test:unit': 'wp-scripts test-unit-js',
72
72
 
73
- 'start': 'rm -rf ./build && wp-scripts start --webpack-copy-php --experimental-modules',
73
+ 'start': 'rimraf build && wp-scripts start --webpack-copy-php --experimental-modules',
74
74
  },
75
75
  npmDependencies: [
76
76
  '@storepress/utils',
@@ -87,8 +87,9 @@ module.exports = {
87
87
  "prettier@npm:wp-prettier",
88
88
  'fs-extra',
89
89
  'webpack-remove-empty-scripts',
90
- 'eslint-plugin-prettier',
91
- 'eslint-formatter-pretty@5',
90
+ 'eslint-plugin-prettier@5.2.1',
91
+ 'eslint-formatter-pretty',
92
+ 'rimraf',
92
93
  ],
93
94
  customPackageJSON: {
94
95
  'publishConfig': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storepress/create-plugin-html",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A template to be used with `@wordpress/create-block` to create a StorePress HTML based JS Extension.",
5
5
  "author": "StorePress",
6
6
  "main": "index.js",