diff --git a/examples/plugin/package.json b/examples/plugin/package.json new file mode 100644 index 000000000..a0ce15267 --- /dev/null +++ b/examples/plugin/package.json @@ -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" + } +} diff --git a/package.json b/package.json index be703b2eb..7be9a36cc 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "homepage": "https://wpack.io", "author": "Swashata Ghosh (https://swas.io)", "workspaces": [ - "packages/*" + "packages/*", + "examples/*" ], "engines": { "yarn": "^1.2.1", diff --git a/packages/scripts/package.json b/packages/scripts/package.json index eeb4ed2f8..998f663c9 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -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 <swashata4u@gmail.com> (https://swas.io)",