Skip to content
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

Add /client package entry #8

Merged
merged 2 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('preact/compat/client');
2 changes: 2 additions & 0 deletions client.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from 'preact/compat/client';
export { default } from 'preact/compat/client';
90 changes: 47 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
{
"public": true,
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should copy over the .editorconfig?

Copy link
Member Author

Choose a reason for hiding this comment

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

bleh, yeah. I used github.dev and it told me this was the right spacing haha

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed for now

"name": "@preact/compat",
"version": "17.1.1",
"description": "Alias of preact/compat",
"main": "./index.js",
"module": "./index.mjs",
"exports": {
".": {
"module": "./index.mjs",
"import": "./index.mjs",
"require": "./index.js"
},
"./server": {
"module": "./server.mjs",
"import": "./server.mjs",
"require": "./server.js"
},
"./server.browser": {
"module": "./server.mjs",
"import": "./server.mjs",
"require": "./server.js"
},
"./jsx-dev-runtime": {
"module": "./jsx-dev-runtime.mjs",
"import": "./jsx-dev-runtime.mjs",
"require": "./jsx-dev-runtime.js"
},
"./jsx-runtime": {
"module": "./jsx-runtime.mjs",
"import": "./jsx-runtime.mjs",
"require": "./jsx-runtime.js"
}
},
"repository": "preactjs/compat-alias-package",
"author": "Preact Team <team@preactjs.com>",
"license": "MIT",
"homepage": "https://preactjs.com",
"peerDependencies": {
"preact": "*"
},
"devDependencies": {
"preact": "^10.5.15"
}
"public": true,
"name": "@preact/compat",
"version": "17.1.1",
"description": "Alias of preact/compat",
"main": "./index.js",
"module": "./index.mjs",
"exports": {
".": {
"module": "./index.mjs",
"import": "./index.mjs",
"require": "./index.js"
},
"./server": {
"module": "./server.mjs",
"import": "./server.mjs",
"require": "./server.js"
},
"./server.browser": {
"module": "./server.mjs",
"import": "./server.mjs",
"require": "./server.js"
},
"./client": {
"import": "./client.mjs",
"require": "./client.js"
},
"./jsx-dev-runtime": {
"module": "./jsx-dev-runtime.mjs",
"import": "./jsx-dev-runtime.mjs",
"require": "./jsx-dev-runtime.js"
},
"./jsx-runtime": {
"module": "./jsx-runtime.mjs",
"import": "./jsx-runtime.mjs",
"require": "./jsx-runtime.js"
}
},
"repository": "preactjs/compat-alias-package",
"author": "Preact Team <team@preactjs.com>",
"license": "MIT",
"homepage": "https://preactjs.com",
"peerDependencies": {
"preact": "*"
},
"devDependencies": {
"preact": "^10.5.15"
}
}