Skip to content

Commit

Permalink
feat: have proper name wpackio-scripts
Browse files Browse the repository at this point in the history
Instead of using string in bin, use an object to correctly
define the name of the executable.
  • Loading branch information
swashata committed Oct 7, 2018
1 parent 4e41353 commit cf032b2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
16 changes: 16 additions & 0 deletions examples/plugin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "wpackio-example-wp-plugin",
"version": "1.0.0",
"description": "A sample execution of wpackio scripts for WordPress Plugin Development",
"main": "index.js",
"author": "Swashata Ghosh (https://swas.io)",
"license": "MIT",
"private": true,
"devDependencies": {
"@wpackio/scripts": "0.0.1"
},
"scripts": {
"exstart": "wpackio-scripts start",
"exbuild": "wpackio-scripts build"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"homepage": "https://wpack.io",
"author": "Swashata Ghosh <swashata4u@gmail.com> (https://swas.io)",
"workspaces": [
"packages/*"
"packages/*",
"examples/*"
],
"engines": {
"yarn": "^1.2.1",
Expand Down
4 changes: 3 additions & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"wordpress-bundler"
],
"main": "lib/index.js",
"bin": "lib/bin/index.js",
"bin": {
"wpackio-scripts": "lib/bin/index.js"
},
"repository": "https://github.com/swashata/wp-webpack-script",
"homepage": "https://wpack.io",
"author": "Swashata Ghosh &lt;swashata4u@gmail.com&gt; (https://swas.io)",
Expand Down

0 comments on commit cf032b2

Please sign in to comment.