Skip to content

Commit

Permalink
fix: pkg publish for browser (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
thundermiracle authored Jul 12, 2023
1 parent a9a5f1d commit e4b72c3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-walls-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"filter-data": patch
---

fix: pkg publish for browser
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
coverage
dist
umd
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"main": "./dist/cjs/index.cjs",
"module": "./dist/es/index.js",
"types": "./dist/index.d.ts",
"unpkg": "./umd/index.umd.js",
"jsdelivr": "./umd/index.umd.js",
"unpkg": "./umd/filterdata.umd.js",
"jsdelivr": "./umd/filterdata.umd.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -29,7 +29,8 @@
"./package.json": "./package.json"
},
"files": [
"dist"
"dist",
"umd"
],
"repository": {
"type": "git",
Expand All @@ -48,13 +49,9 @@
"type-check:watch": "pnpm type-check -- --watch",
"test": "pnpm type-check && pnpm eslint && pnpm jest",
"bench": "tsx ./benchmark/index.ts",
"build:js:cjs": "tsc --project tsconfig.cjs.json",
"build:js:es": "tsc --project tsconfig.es.json",
"build:js:umd": "rollup -c",
"build:js": "rollup -c",
"prettier": "prettier --write 'src/**/*.ts' '__test__/**/*.ts'",
"prebuild": "rimraf lib/ && rimraf dist/ && rimraf es/",
"build": "pnpm build:js",
"build": "rollup -c",
"cs:version": "changeset version",
"cs:release": "pnpm build && changeset publish"
},
Expand Down
6 changes: 0 additions & 6 deletions tsconfig.webpack.json

This file was deleted.

2 changes: 0 additions & 2 deletions umd/index.umd.js

This file was deleted.

1 change: 0 additions & 1 deletion umd/index.umd.js.map

This file was deleted.

0 comments on commit e4b72c3

Please sign in to comment.