Просмотр исходного кода

fix(spill): publish notice through standard pure source entry

Tianyi Cui 1 месяц назад
Родитель
Сommit
cef72f2f27

+ 2 - 2
packages/spill/spill-policy/package.json

@@ -20,14 +20,14 @@
     },
     "./notice": {
       "types": "./lib/types/notice.d.ts",
-      "default": "./lib/notice.js"
+      "default": "./lib/types/notice.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
     "lib/index.js",
-    "lib/notice.js",
+    "lib/types/**/*.js",
     "lib/types/**/*.d.ts"
   ],
   "license": "MIT",

+ 0 - 8
packages/spill/spill-policy/tsdown.config.ts

@@ -1,8 +0,0 @@
-import { defineConfig } from 'tsdown'
-
-export default defineConfig([
-  { entry: ['lib/types/index.js'], outDir: 'lib', platform: 'node', format: 'esm', clean: false, dts: false },
-  {
-    entry: ['lib/types/notice.js'], outDir: 'lib', platform: 'neutral', format: 'esm', clean: false, dts: false,
-  },
-])