Skip to content

Commit

Permalink
correctly build transport-dom (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime authored May 3, 2024
1 parent 423e1d2 commit fc500af
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-baboons-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@penumbra-zone/transport-dom': major
---

correctly build transport-dom
15 changes: 10 additions & 5 deletions packages/transport-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@
"type": "module",
"scripts": {
"build": "tsc && vite build",
"clean": "rm -rfv dist",
"clean": "rm -rfv dist package penumbra-zone-transport-dom-*.tgz",
"lint": "eslint \"**/*.ts*\"",
"prebuild": "$npm_execpath run clean",
"prepack": "$npm_execpath run build",
"test": "vitest run"
},
"files": [
"dist"
],
"exports": {
"./*": "./src/*.ts"
},
"publishConfig": {
"files": [
"dist"
],
"exports": {
"./src/*": "./dist/*.js"
"./*": {
"import": "./dist/*.js",
"types": "./dist/*.d.ts"
}
}
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/transport-dom/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "tsconfig/base.json",
"exclude": ["node_modules"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {
"outDir": "dist",
"noEmit": true
Expand Down
5 changes: 4 additions & 1 deletion packages/transport-dom/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/// <reference types="vitest" />

import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { externalizeDeps } from 'vite-plugin-externalize-deps';

export default defineConfig({
build: {
Expand All @@ -16,7 +19,7 @@ export default defineConfig({
formats: ['es'],
},
},
plugins: [dts({ rollupTypes: true })],
plugins: [dts({ rollupTypes: true }), externalizeDeps({ except: ['@penumbra-zone/polyfills'] })],
test: {
include: ['**/*.test.ts'],
browser: {
Expand Down

0 comments on commit fc500af

Please sign in to comment.