Skip to content

Commit

Permalink
fix: move browser imports (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet authored Nov 2, 2024
1 parent 4b7c3e6 commit 100ffb0
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions packages/async-queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/async-queue",
Expand Down
4 changes: 2 additions & 2 deletions packages/bitfield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/bitfield",
Expand Down
4 changes: 2 additions & 2 deletions packages/cron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/cron",
Expand Down
4 changes: 2 additions & 2 deletions packages/discord-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/discord-utilities",
Expand Down
4 changes: 2 additions & 2 deletions packages/duration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/duration",
Expand Down
4 changes: 2 additions & 2 deletions packages/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/fetch",
Expand Down
4 changes: 2 additions & 2 deletions packages/iterator-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
},
"exports": {
".": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"./all": {
"import": {
Expand Down
4 changes: 2 additions & 2 deletions packages/lexure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/lexure",
Expand Down
4 changes: 2 additions & 2 deletions packages/ratelimits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/ratelimits",
Expand Down
4 changes: 2 additions & 2 deletions packages/result/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/result",
Expand Down
4 changes: 2 additions & 2 deletions packages/snowflake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/snowflake",
Expand Down
4 changes: 2 additions & 2 deletions packages/stopwatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/stopwatch",
Expand Down
4 changes: 2 additions & 2 deletions packages/string-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/string-store",
Expand Down
4 changes: 2 additions & 2 deletions packages/time-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/time-utilities",
Expand Down
4 changes: 2 additions & 2 deletions packages/timer-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/timer-manager",
Expand Down
4 changes: 2 additions & 2 deletions packages/timestamp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"unpkg": "dist/iife/index.global.js",
"types": "dist/cjs/index.d.cts",
"exports": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"sideEffects": false,
"homepage": "https://github.com/sapphiredev/utilities/tree/main/packages/timestamp",
Expand Down
4 changes: 2 additions & 2 deletions packages/utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@
},
"exports": {
".": {
"browser": "./dist/iife/index.global.js",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"browser": "./dist/iife/index.global.js"
}
},
"./arrayStrictEquals": {
"import": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/subpath-updater.cts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ async function main() {
[
'.',
{
browser: './dist/iife/index.global.js',
import: {
types: './dist/esm/index.d.mts',
default: './dist/esm/index.mjs'
},
require: {
types: './dist/cjs/index.d.cts',
default: './dist/cjs/index.cjs'
},
browser: './dist/iife/index.global.js'
}
}
]
]);
Expand Down

0 comments on commit 100ffb0

Please sign in to comment.