Skip to content

Commit

Permalink
chore: set esm-first
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiu8081 committed Sep 1, 2024
1 parent 22a62b9 commit 70e9096
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"blive-message-listener": "link:../",
"blive-message-listener": "workspace:*",
"esbuild": "0.23.1",
"serve": "^14.2.3",
"tsx": "4.17.0"
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "blive-message-listener",
"version": "0.4.8",
"description": "Bilibili-live danmu listener with type",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"homepage": "https://github.com/ddiu8081/blive-message-listener#readme",
"repository": {
Expand All @@ -19,13 +20,13 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./browser": {
"types": "./dist/browser.d.ts",
"require": "./dist/browser.cjs",
"import": "./dist/browser.mjs"
"import": "./dist/browser.js"
}
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export default defineConfig({
entry: ['src/index.ts', 'src/browser.ts'],
dts: true,
clean: true,
})
})

0 comments on commit 70e9096

Please sign in to comment.