Răsfoiți Sursa

ci: disable minification

Sven 1 an în urmă
părinte
comite
cf9084bc2b
2 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 3 3
      .github/CONTRIBUTING.md
  2. 2 2
      package.json

+ 3 - 3
.github/CONTRIBUTING.md

@@ -14,9 +14,9 @@ Thanks to Matt Pocock for his video on how to set up a modern TypeScript library
 | Command | Description |
 | :-- | :-- |
 | `npm run lint` | Run TSC and ESLint to lint the code |
-| `npm run build` | Build the project with tsup, outputting minified CJS and ESM bundles to `dist/` |
-| `npm run build-global` | Build the project with tsup, outputting a minified bundle that exports as a global, including a userscript header to `dist/` (for publishing to greasyfork) |
-| `npm run dev` | Watch for changes and build the project without minification and with sourcemaps |
+| `npm run build` | Build the project with tsup, outputting CJS and ESM bundles as well as TypeScript declarations to `dist/` |
+| `npm run build-global` | Build the project with tsup, outputting a bundle that exports as a global, including a userscript header to `dist/` (for publishing to greasyfork) |
+| `npm run dev` | Watch for changes and build the project with sourcemaps |
 
 <br>
 

+ 2 - 2
package.json

@@ -10,10 +10,10 @@
     "build-types": "tsc --emitDeclarationOnly --declaration --outDir dist",
     "build-common": "tsup lib/index.ts --format cjs,esm --clean --treeshake",
     "build-global": "tsup lib/index.ts --format cjs,esm,iife --treeshake --onSuccess \"npm run post-build-global\"",
-    "build": "npm run build-common -- --minify && npm run build-types",
+    "build": "npm run build-common -- && npm run build-types",
     "post-build-global": "npm run node-ts -- ./tools/post-build-global.mts",
     "dev": "npm run build-common -- --sourcemap --watch --onSuccess \"npm run build-types\"",
-    "publish-package": "npm run build && changeset publish",
+    "publish-package": "changeset publish",
     "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm"
   },
   "repository": {