Skip to content

Commit

Permalink
build: upgrade tsup (#773)
Browse files Browse the repository at this point in the history
* build: upgrade tsup

* fix(build): remove duplicate declaration

* Create cold-rice-fetch.md
  • Loading branch information
Kikobeats committed Jan 23, 2024
1 parent c313a3c commit d26e2dd
Show file tree
Hide file tree
Showing 9 changed files with 166 additions and 284 deletions.
9 changes: 9 additions & 0 deletions .changeset/cold-rice-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@edge-runtime/cookies": patch
"@edge-runtime/format": patch
"@edge-runtime/node-utils": patch
"@edge-runtime/primitives": patch
"@edge-runtime/user-agent": patch
---

build: upgrade tsup
2 changes: 1 addition & 1 deletion packages/cookies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@edge-runtime/format": "workspace:*",
"@edge-runtime/jest-environment": "workspace:*",
"@types/cookie": "0.6.0",
"tsup": "6"
"tsup": "8"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"web"
],
"devDependencies": {
"tsup": "6"
"tsup": "8"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/node-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@edge-runtime/primitives": "workspace:*",
"@types/test-listen": "1.1.2",
"test-listen": "1.1.0",
"tsup": "6"
"tsup": "8"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"blob-polyfill": "7.0.20220408",
"esbuild-plugin-alias": "latest",
"event-target-shim": "6.0.2",
"tsup": "6",
"tsup": "8",
"undici": "5.23.0",
"urlpattern-polyfill": "9.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/primitives/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { basename, join, parse, resolve } from 'path'
import { basename, join, resolve } from 'path'
import alias from 'esbuild-plugin-alias'
import { Options, build } from 'tsup'
import fs from 'fs'
Expand All @@ -23,9 +23,9 @@ async function bundlePackage() {
bundle: true,
dts: {
resolve: true,
only: true,
},
splitting: false,
format: [],
target: TARGET,
entry: filesExt
.map((f) => f.replace(/\.(js|ts)$/, '.d.ts'))
Expand Down
2 changes: 0 additions & 2 deletions packages/primitives/type-definitions/events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import type { EventTarget } from 'event-target-shim'
declare const EventTargetConstructor: typeof EventTarget
declare const EventConstructor: typeof Event

export { EventConstructor as Event }

export declare class FetchEvent {
request: Request
response: Response | null
Expand Down
2 changes: 1 addition & 1 deletion packages/user-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@edge-runtime/jest-environment": "workspace:*",
"@types/ua-parser-js": "0.7.39",
"tsup": "6",
"tsup": "8",
"ua-parser-js": "1.0.37"
},
"engines": {
Expand Down

1 comment on commit d26e2dd

@vercel
Copy link

@vercel vercel bot commented on d26e2dd Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

edge-runtime – ./

edge-runtime-git-main.vercel.sh
edge-runtime.vercel.app
edge-runtime.vercel.sh

Please sign in to comment.