Skip to content

Commit

Permalink
fix: Publish builds in order to ensure bundles work
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Sep 19, 2023
1 parent 29dd7c9 commit d1b51af
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .changeset/breezy-weeks-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@data-client/use-enhanced-reducer': patch
'@data-client/normalizr': patch
'@data-client/endpoint': patch
'@data-client/graphql': patch
'@data-client/hooks': patch
'@data-client/react': patch
'@data-client/redux': patch
'@data-client/core': patch
'@data-client/rest': patch
'@data-client/img': patch
'@data-client/ssr': patch
---

Fix unpkg bundles by ensuring dependencies are built in order
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"scripts": {
"changeset:version": "run changeset version && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install",
"changeset:publish": "run build:types && run changeset publish",
"changeset:publish": "run build && run changeset publish",
"lint": "eslint --ext .ts,.tsx,.js",
"format": "eslint --fix \"packages/*/src/**/*.{js,ts,tsx,cts}\"",
"clean:types": "rimraf packages/*/*.tsbuildinfo",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"build": "run build:lib && run build:legacy:lib && run build:bundle",
"dev": "run build:lib -w",
"prepare": "run build:lib",
"prepack": "run prepare && run build:bundle && run build:legacy:lib"
"prepack": "run prepare && run build:legacy:lib && run build:bundle"
},
"author": "Nathaniel Tucker <[email protected]> (https://github.com/ntucker)",
"license": "Apache-2.0",
Expand Down
11 changes: 10 additions & 1 deletion packages/use-enhanced-reducer/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ export default [
{
input: 'lib/index.js',
external: isExternal,
output: [{ file: pkg.unpkg, format: 'umd', name: 'EnhancedReducer' }],
output: [
{
file: pkg.unpkg,
format: 'umd',
name: 'EnhancedReducer',
globals: {
react: 'React',
},
},
],
plugins: [
babel({
exclude: ['node_modules/**', '**/__tests__/**'],
Expand Down
4 changes: 4 additions & 0 deletions website/src/css/customTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9V344c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z'/%3E%3C/svg%3E");
}

.navbar {
font-size: 13pt;
}

.navbar .navbar__link {
font-family: var(--ifm-font-family-base);
letter-spacing: -0.02em;
Expand Down

0 comments on commit d1b51af

Please sign in to comment.