-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix node 16 cjs import #2112
Merged
Merged
Fix node 16 cjs import #2112
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6f2aaeb
Fix node 16 cjs import
KyleAMathews ccd9d70
Remove unneeded options
KyleAMathews ffb22aa
add changeset
KyleAMathews f1c3c45
fix
KyleAMathews 6ad5559
Run build commands sequentially to prevent race conditions
KyleAMathews ee2a365
update changeset
KyleAMathews 5aaef8b
DRY
KyleAMathews 52f4a56
Remove redundant setting
KyleAMathews fe75071
Merge remote-tracking branch 'origin/main' into fix-build
KyleAMathews 093ce51
Fix type errors
KyleAMathews a01d968
Fix prettier
KyleAMathews File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,11 @@ | ||
{ | ||
"name": "@electric-sql/client", | ||
"version": "0.9.0", | ||
"description": "Postgres everywhere - your data, in sync, wherever you need it.", | ||
"type": "module", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/index.legacy-esm.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"sideEffects": false, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/electric-sql/electric.git" | ||
}, | ||
"version": "0.9.0", | ||
"author": "ElectricSQL team and contributors.", | ||
"license": "Apache-2", | ||
"bugs": { | ||
"url": "https://github.com/electric-sql/electric/issues" | ||
}, | ||
"homepage": "https://electric-sql.com", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/pg": "^8.11.6", | ||
|
@@ -49,22 +26,50 @@ | |
"uuid": "^10.0.0", | ||
"vitest": "^2.0.2" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"import": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm assuming this was the main thing that was missing for node CJS imports (?) |
||
"types": "./dist/cjs/index.d.cts", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"homepage": "https://electric-sql.com", | ||
"license": "Apache-2", | ||
"main": "./dist/cjs/index.cjs", | ||
"module": "./dist/index.legacy-esm.js", | ||
"types": "./dist/index.d.ts", | ||
"optionalDependencies": { | ||
"@rollup/rollup-darwin-arm64": "^4.18.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/electric-sql/electric.git" | ||
}, | ||
"scripts": { | ||
"build": "shx rm -rf dist && concurrently \"tsup\" \"tsc -p tsconfig.build.json\"", | ||
"format": "eslint . --fix", | ||
"prepack": "pnpm build", | ||
"stylecheck": "eslint . --quiet", | ||
"test": "pnpm exec vitest", | ||
"typecheck": "tsc -p tsconfig.json" | ||
}, | ||
"sideEffects": false, | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./dist/index.d.ts" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"test": "pnpm exec vitest", | ||
"typecheck": "tsc -p tsconfig.json", | ||
"build": "shx rm -rf dist && concurrently \"tsup\" \"tsc -p tsconfig.build.json\"", | ||
"prepack": "pnpm build", | ||
"stylecheck": "eslint . --quiet", | ||
"format": "eslint . --fix" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff is noisier than ideal as I ran https://www.npmjs.com/package/fixpack on the package.json