diff --git a/package.json b/package.json index 05ad22964..b6592478a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@theme-ui/monorepo", - "version": "0.16.2-scale-tuples.0", + "version": "0.16.2-develop.1", "private": true, "scripts": { "build": "preconstruct build", diff --git a/packages/css/package.json b/packages/css/package.json index 0b6951a83..cf3290b3c 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -10,6 +10,7 @@ "exports": { ".": { "module": { + "worker": "./dist/theme-ui-css.worker.esm.js", "browser": "./dist/theme-ui-css.browser.esm.js", "default": "./dist/theme-ui-css.esm.js" }, @@ -17,6 +18,7 @@ }, "./utils": { "module": { + "worker": "./utils/dist/theme-ui-css-utils.worker.esm.js", "browser": "./utils/dist/theme-ui-css-utils.browser.esm.js", "default": "./utils/dist/theme-ui-css-utils.esm.js" }, @@ -50,7 +52,8 @@ ], "exports": { "envConditions": [ - "browser" + "browser", + "worker" ] } }, diff --git a/packages/docs/src/pages/readme.mdx b/packages/docs/src/pages/readme.mdx index 908b32b28..576200318 100644 --- a/packages/docs/src/pages/readme.mdx +++ b/packages/docs/src/pages/readme.mdx @@ -2,6 +2,6 @@ title: 'Readme' --- -import Readme from 'theme-ui/README.md' +import Readme from '../../../theme-ui/README.md' diff --git a/packages/gatsby-plugin-theme-ui/package.json b/packages/gatsby-plugin-theme-ui/package.json index 44e7433d6..3b2378ec8 100644 --- a/packages/gatsby-plugin-theme-ui/package.json +++ b/packages/gatsby-plugin-theme-ui/package.json @@ -9,6 +9,7 @@ "exports": { ".": { "module": { + "worker": "./dist/gatsby-plugin-theme-ui.worker.esm.js", "browser": "./dist/gatsby-plugin-theme-ui.browser.esm.js", "default": "./dist/gatsby-plugin-theme-ui.esm.js" }, @@ -50,7 +51,8 @@ "preconstruct": { "exports": { "envConditions": [ - "browser" + "browser", + "worker" ] } } diff --git a/packages/theme-ui/jsx-dev-runtime/package.json b/packages/theme-ui/jsx-dev-runtime/package.json index 9bcd5fe4f..3621e107d 100644 --- a/packages/theme-ui/jsx-dev-runtime/package.json +++ b/packages/theme-ui/jsx-dev-runtime/package.json @@ -1,5 +1,8 @@ { "main": "dist/theme-ui-jsx-dev-runtime.cjs.js", "module": "dist/theme-ui-jsx-dev-runtime.esm.js", + "browser": { + "./dist/theme-ui-jsx-dev-runtime.esm.js": "./dist/theme-ui-jsx-dev-runtime.browser.esm.js" + }, "types": "dist/theme-ui-jsx-dev-runtime.cjs.d.ts" } diff --git a/packages/theme-ui/jsx-runtime/package.json b/packages/theme-ui/jsx-runtime/package.json index ef0035fd3..9f7b30be1 100644 --- a/packages/theme-ui/jsx-runtime/package.json +++ b/packages/theme-ui/jsx-runtime/package.json @@ -1,5 +1,8 @@ { "main": "dist/theme-ui-jsx-runtime.cjs.js", "module": "dist/theme-ui-jsx-runtime.esm.js", + "browser": { + "./dist/theme-ui-jsx-runtime.esm.js": "./dist/theme-ui-jsx-runtime.browser.esm.js" + }, "types": "dist/theme-ui-jsx-runtime.cjs.d.ts" } diff --git a/packages/theme-ui/package.json b/packages/theme-ui/package.json index 9c240ec8e..ff1c0554a 100644 --- a/packages/theme-ui/package.json +++ b/packages/theme-ui/package.json @@ -5,6 +5,36 @@ "source": "src/index.ts", "main": "dist/theme-ui.cjs.js", "module": "dist/theme-ui.esm.js", + "browser": { + "./dist/theme-ui.esm.js": "./dist/theme-ui.browser.esm.js" + }, + "exports": { + ".": { + "module": { + "worker": "./dist/theme-ui.worker.esm.js", + "browser": "./dist/theme-ui.browser.esm.js", + "default": "./dist/theme-ui.esm.js" + }, + "default": "./dist/theme-ui.cjs.js" + }, + "./jsx-runtime": { + "module": { + "worker": "./jsx-runtime/dist/theme-ui-jsx-runtime.worker.esm.js", + "browser": "./jsx-runtime/dist/theme-ui-jsx-runtime.browser.esm.js", + "default": "./jsx-runtime/dist/theme-ui-jsx-runtime.esm.js" + }, + "default": "./jsx-runtime/dist/theme-ui-jsx-runtime.cjs.js" + }, + "./jsx-dev-runtime": { + "module": { + "worker": "./jsx-dev-runtime/dist/theme-ui-jsx-dev-runtime.worker.esm.js", + "browser": "./jsx-dev-runtime/dist/theme-ui-jsx-dev-runtime.browser.esm.js", + "default": "./jsx-dev-runtime/dist/theme-ui-jsx-dev-runtime.esm.js" + }, + "default": "./jsx-dev-runtime/dist/theme-ui-jsx-dev-runtime.cjs.js" + }, + "./package.json": "./package.json" + }, "types": "dist/theme-ui.cjs.d.ts", "sideEffects": false, "author": "Brent Jackson ", @@ -39,6 +69,12 @@ "css-in-js" ], "preconstruct": { + "exports": { + "envConditions": [ + "browser", + "worker" + ] + }, "entrypoints": [ "index.ts", "jsx-dev-runtime.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef1730b1c..b6a636ed5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4100,7 +4100,7 @@ packages: jest-regex-util: 29.6.3 jest-util: 29.7.0 micromatch: 4.0.5 - pirates: 4.0.5 + pirates: 4.0.6 slash: 3.0.0 write-file-atomic: 4.0.2 transitivePeerDependencies: @@ -6098,7 +6098,7 @@ packages: grapheme-splitter: 1.0.4 ignore: 5.2.4 natural-compare-lite: 1.4.0 - semver: 7.5.4 + semver: 7.5.1 tsutils: 3.21.0(typescript@5.1.3) typescript: 5.1.3 transitivePeerDependencies: @@ -7249,12 +7249,12 @@ packages: '@babel/plugin-transform-spread': 7.22.5(@babel/core@7.22.5) '@babel/preset-env': 7.22.5(@babel/core@7.22.5) '@babel/preset-react': 7.22.5(@babel/core@7.22.5) - '@babel/runtime': 7.22.15 + '@babel/runtime': 7.22.5 babel-plugin-dynamic-import-node: 2.3.3 babel-plugin-macros: 3.1.0 babel-plugin-transform-react-remove-prop-types: 0.4.24 core-js: 3.31.0 - gatsby-core-utils: 4.13.1 + gatsby-core-utils: 4.10.0 gatsby-legacy-polyfills: 3.10.0 transitivePeerDependencies: - supports-color @@ -8516,7 +8516,6 @@ packages: loose-envify: 1.4.0 object-assign: 4.1.1 dev: false - bundledDependencies: false /create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} @@ -17850,7 +17849,6 @@ packages: prop-types: 15.8.1 react: 15.7.0 dev: false - bundledDependencies: false /react-dom@18.2.0(react@18.2.0): resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} @@ -17976,7 +17974,6 @@ packages: object-assign: 4.1.1 prop-types: 15.8.1 dev: false - bundledDependencies: false /react@18.2.0: resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==}