Skip to content

Commit

Permalink
fix up exports and version
Browse files Browse the repository at this point in the history
  • Loading branch information
wesgro committed Jul 1, 2024
1 parent eda6e7e commit f9ae72d
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@ jobs:
- name: Typecheck
run: pnpm run typecheck

- name: Typecheck package
run: pnpm run typecheck:package

- name: Build dist
run: pnpm run build
20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
{
"name": "react-aria-menubutton-ts",
"version": "1.0.0",
"version": "0.0.1",
"description": "A fully accessible and flexible React-powered menu button",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": "./dist/index.cjs",
"types": "./dist/index.d.cts"
}
},
"scripts": {
"lint": "eslint 'src/**/*.{ts,tsx}'",
"prepack": "pnpm run build",
"pack": "pnpm pack",
"start": "vite",
"jest": "jest",
"test": "npm run lint && npm run jest",
"format": "prettier --write ./src",
"build": "tsup",
"typecheck": "tsc --noEmit",
"typecheck:package": "attw --pack .",
"prepublishOnly": "npm run umd && npm run build"
},
"husky": {
Expand Down Expand Up @@ -57,6 +72,7 @@
"react-dom": "^16.14.0 || 17 || 18"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@testing-library/dom": "^10.2.0",
"@testing-library/react": "^16.0.0",
"@types/react": "^18.3.3",
Expand Down
Loading

0 comments on commit f9ae72d

Please sign in to comment.