Skip to content

Commit

Permalink
build: remove legacy umd and esm JavaScript builds
Browse files Browse the repository at this point in the history
This removes JS builds in the `dist` directory that were never publicly exposed in the `package.json`. This isn't a breaking change because those builds were internal and never used by the public docs or public entry points.

Fixes #528
  • Loading branch information
JohnAlbin authored Oct 20, 2023
1 parent 2846b4d commit f8a8aed
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 145 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"isomorphic-fetch": "^3.0.0",
"jest": "^27.5.1",
"lerna": "^4.0.0",
"microbundle": "^0.14.2",
"microbundle": "^0.15.1",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"start-server-and-test": "^1.15.5",
Expand Down
9 changes: 5 additions & 4 deletions packages/next-drupal-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"version": "0.4.0",
"sideEffects": false,
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.modern.js",
"types": "dist/index.d.ts",
"license": "MIT",
"publishConfig": {
Expand All @@ -16,8 +17,8 @@
"url": "https://twitter.com/shadcn"
},
"scripts": {
"prepare": "microbundle --no-compress --jsx React.createElement",
"dev": "microbundle watch --no-compress --jsx React.createElement",
"prepare": "microbundle --no-compress --jsx React.createElement --format modern,cjs",
"dev": "microbundle watch --no-compress --jsx React.createElement --format modern,cjs",
"test": "jest"
},
"keywords": [
Expand Down
11 changes: 6 additions & 5 deletions packages/next-drupal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"version": "1.6.0",
"sideEffects": false,
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.modern.js",
"types": "dist/types.d.ts",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand All @@ -16,8 +17,8 @@
"url": "https://twitter.com/shadcn"
},
"scripts": {
"prepare": "microbundle --no-compress --jsx React.createElement",
"dev": "microbundle watch --no-compress --jsx React.createElement",
"prepare": "microbundle --no-compress --jsx React.createElement --format modern,cjs",
"dev": "microbundle watch --no-compress --jsx React.createElement --format modern,cjs",
"test": "jest",
"prepublishOnly": "yarn prepare"
},
Expand Down
Loading

0 comments on commit f8a8aed

Please sign in to comment.