changed npm scripts

This commit is contained in:
Simon Haugen 2021-02-13 13:19:22 +01:00
parent 6d7be4f908
commit d101cfc29a

View file

@ -17,12 +17,10 @@
}, },
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"dev": "concurrently \"npm run plugin:dev\" \"npm run example:dev\"", "clean": "rm -rf dist",
"build": "npm run plugin:build && npm run example:build", "build": "npm run clean && tsup src/index.ts --dts",
"plugin:dev": "tsup src/index.ts --dts --watch", "dev": "tsup src/index.ts --dts --watch",
"plugin:build": "tsup src/index.ts --dts", "dev:client": "npm -C example run dev",
"example:dev": "npm -C example run dev",
"example:build": "npm -C example run build",
"postinstall": "cd example && npm install" "postinstall": "cd example && npm install"
}, },
"peerDependencies": { "peerDependencies": {