Ver código fonte

ref: replace npmignore with files in pkg.json

Sven 1 ano atrás
pai
commit
9d3de8f4ce
3 arquivos alterados com 9 adições e 18 exclusões
  1. 0 14
      .npmignore
  2. 0 0
      README-greasyfork.md
  3. 9 4
      package.json

+ 0 - 14
.npmignore

@@ -1,14 +0,0 @@
-.changeset/
-.github/
-
-dist/index.global.js
-lib/
-package-lock.json
-.eslintrc.cjs
-tsconfig.json
-test.ts
-*.map
-
-README.greasyfork.md
-.gitignore
-.npmignore

+ 0 - 0
README.greasyfork.md → README-greasyfork.md


+ 9 - 4
package.json

@@ -40,9 +40,14 @@
     "tsup": "^7.2.0",
     "typescript": "^5.1.6"
   },
-  "browserslist": [
-    "last 1 version",
-    "> 1%",
-    "not dead"
+  "files": [
+    "/dist/index.js",
+    "/dist/index.mjs",
+    "/dist/index.d.ts",
+    "/dist/index.d.mts",
+    "/package.json",
+    "/README.md",
+    "/CHANGELOG.md",
+    "/LICENSE.txt"
   ]
 }