Skip to content

Commit

Permalink
output .cjs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sikanhe committed Dec 5, 2023
1 parent 8cac6ce commit b5aa689
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
yarn-error.log
.vscode
dist
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
install-state.gz
Binary file removed .yarn/install-state.gz
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "gqtx",
"version": "0.9.0",
"type": "module",
"main": "cjs/index.js",
"main": "cjs/index.cjs",
"module": "index.js",
"types": "index.d.ts",
"exports": {
".": {
"import": "./index.js",
"require": "./cjs/index.js"
"require": "./cjs/index.cjs"
},
"./relay": {
"import": "./relay.js",
"require": "./cjs/relay.js"
"require": "./cjs/relay.cjs"
},
"./package.json": "./package.json",
"./": "./"
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default {
{
dir: isCJSBuild ? 'dist/cjs' : 'dist',
format: isCJSBuild ? 'cjs' : 'esm',
entryFileNames: isCJSBuild ? '[name].cjs' : '[name].js',
},
],
plugins: [
Expand Down

1 comment on commit b5aa689

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes have been published to npm.

yarn add -E gqtx@0.9.1-b5aa6892.0

Please sign in to comment.