Skip to content

Commit

Permalink
Fix use-sync-external-store import
Browse files Browse the repository at this point in the history
  • Loading branch information
nimeshnayaju committed Jan 15, 2023
1 parent 7fb9703 commit 297daa9
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
6 changes: 6 additions & 0 deletions packages/y-presence/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @y-presence/react

## 0.2.3

### Patch Changes

- Fix use-sync-external-store import

## 0.2.2

### Patch Changes
Expand Down
6 changes: 4 additions & 2 deletions packages/y-presence/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "y-presence",
"version": "0.2.2",
"version": "0.2.3",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
Expand Down Expand Up @@ -36,6 +37,7 @@
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/use-sync-external-store": "^0.0.3",
"esbuild-plugin-replace": "^1.3.0",
"eslint": "^8.29.0",
"eslint-config-custom": "workspace:*",
"react": "^18.2.0",
Expand Down
10 changes: 8 additions & 2 deletions packages/y-presence/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'tsup'
import { replace } from 'esbuild-plugin-replace';
import { defineConfig } from 'tsup';

export default defineConfig({
entryPoints: ['src/index.ts'],
Expand All @@ -10,7 +11,12 @@ export default defineConfig({
minifySyntax: true,
minifyWhitespace: false,
minifyIdentifiers: true,
external: ['react'],
clean: true,
dts: true,
esbuildPlugins: [
replace({
'use-sync-external-store/shim/with-selector':
'use-sync-external-store/shim/with-selector.js',
})
]
})
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 297daa9

Please sign in to comment.