Ver código fonte

ref: improve build commands

Sv443 1 ano atrás
pai
commit
9c9426a111
2 arquivos alterados com 5 adições e 5 exclusões
  1. 2 2
      package-lock.json
  2. 3 3
      package.json

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "@sv443-network/userutils",
-  "version": "0.0.1",
+  "version": "0.1.4",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "@sv443-network/userutils",
-      "version": "0.0.1",
+      "version": "0.1.4",
       "license": "MIT",
       "devDependencies": {
         "@changesets/cli": "^2.26.2",

+ 3 - 3
package.json

@@ -7,9 +7,9 @@
   "types": "dist/index.d.ts",
   "scripts": {
     "lint": "tsc && eslint .",
-    "prepare-build": "tsup lib/index.ts --format cjs,esm --dts --clean --treeshake",
-    "build": "npm run prepare-build -- --minify",
-    "build-dev": "npm run prepare-build -- --sourcemap --watch",
+    "build-common": "tsup lib/index.ts --format cjs,esm --dts --clean --treeshake",
+    "build": "npm run build-common -- --minify",
+    "dev": "npm run build-common -- --sourcemap --watch",
     "publish-package": "npm run build && changeset publish"
   },
   "repository": {