Ver Fonte

fix: JSR & npm bundles

Sv443 há 3 semanas atrás
pai
commit
ee73384c37
4 ficheiros alterados com 26 adições e 9 exclusões
  1. 7 7
      jsr.json
  2. 1 1
      package.json
  3. 9 1
      tsconfig.json
  4. 9 0
      tsconfig.spec.json

+ 7 - 7
jsr.json

@@ -1,20 +1,20 @@
 {
   "$schema": "https://jsr.io/schema/config-file.v1.json",
   "name": "@sv443-network/userutils",
-  "version": "8.3.0",
+  "version": "0.0.1-invalid",
   "exports": "./lib/index.ts",
   "publish": {
     "include": [
-      "lib/**/*.ts",
-      "dist/index.js",
-      "dist/index.cjs",
-      "dist/index.global.js",
-      "dist/index.umd.js",
-      "dist/lib/**/*",
+      "lib/**/*.(ts|mts|js|mjs|json|css)",
+      "dist/index.(js|mjs|cjs|global.js|umd.js)",
+      "dist/lib/*.d.ts",
       "package.json",
       "README.md",
       "CHANGELOG.md",
       "LICENSE.txt"
+    ],
+    "exclude": [
+      "**/*.spec.ts"
     ]
   }
 }

+ 1 - 1
package.json

@@ -93,7 +93,7 @@
     "/dist/index.umd.js",
     "/dist/lib/**.d.ts",
     "/package.json",
-    "/README-summary.md",
+    "/README.md",
     "/CHANGELOG.md",
     "/LICENSE.txt"
   ]

+ 9 - 1
tsconfig.json

@@ -18,5 +18,13 @@
     "strict": true,
     "useDefineForClassFields": true
   },
-  "exclude": ["**/*.js", "dist/**", "tools/**", "test/**", "**/test.ts"]
+  "exclude": [
+    "**/*.js",
+    "dist/**",
+    "tools/**",
+    "test/**",
+    "**/test.ts",
+    "**/*.spec.ts",
+    "vitest.config.ts"
+  ]
 }

+ 9 - 0
tsconfig.spec.json

@@ -0,0 +1,9 @@
+{
+  "extends": "./tsconfig.json",
+  "files": [
+    "src/**/*.spec.ts"
+  ],
+  "compilerOptions": {
+    "noEmit": true,
+  }
+}