Skip to content

Commit

Permalink
Add publint
Browse files Browse the repository at this point in the history
  • Loading branch information
devrnt committed Feb 8, 2025
1 parent 4860b77 commit bbad04e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 11 deletions.
30 changes: 19 additions & 11 deletions packages/react-use-intercom/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "react-use-intercom",
"author": "devrnt",
"module": "dist/index.mjs",
"main": "dist/index.cjs",
"module": "dist/index.js",
"description": "React Intercom integration without the hassle, driven by hooks.",
"homepage": "https://github.com/devrnt/react-use-intercom#readme",
"version": "5.4.1",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/devrnt/react-use-intercom"
"url": "git+https://github.com/devrnt/react-use-intercom.git"
},
"bugs": {
"url": "https://github.com/devrnt/react-use-intercom/issues"
Expand All @@ -21,10 +22,15 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"browser": "./dist/index.mjs"
"browser": "./dist/index.js",
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"keywords": [
Expand All @@ -48,19 +54,20 @@
"test:coverage": "jest --coverage",
"lint": "eslint src test",
"lint:fix": "eslint --fix",
"bundlesize": "pnpm build && size-limit"
"bundlesize": "pnpm build && size-limit",
"publint": "publint"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"size-limit": [
{
"path": "./dist/index.js",
"path": "./dist/index.cjs",
"limit": "3 kB"
},
{
"path": "./dist/index.mjs",
"path": "./dist/index.js",
"limit": "3 kB"
}
],
Expand All @@ -77,6 +84,7 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"publint": "^0.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
Expand All @@ -87,4 +95,4 @@
"tsup": "^8.3.6",
"typescript": "^5.7.3"
}
}
}
29 changes: 29 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 bbad04e

Please sign in to comment.