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

fix(typography): fix a 'could not find a declaration file for module typography' message when importing into project #1306

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 0 additions & 2 deletions packages/typography/index.js

This file was deleted.

14 changes: 11 additions & 3 deletions packages/typography/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@
},
"license": "MIT",
"author": "Tyson Warner <[email protected]>",
"main": "index.js",
"types": "index.d.ts",
"browser": "./dist/index.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts",
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
"clean": "rm -rf dist",
"clean:nm": "rm -rf node_modules",
"bundlesize": "bundlesize",
"publish": "yarn npm publish --tolerate-republish --access public",
"publish:canary": "yarn npm publish --access public --tag canary"
},
Expand All @@ -30,7 +37,8 @@
},
"devDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react-dom": "^17.0.2",
"tsup": "^5.12.7"
},
"peerDependencies": {
"react": ">=16.3.0"
Expand Down
2 changes: 2 additions & 0 deletions packages/typography/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as Agreement } from './Agreement';
export { default as Disclaimer } from './Disclaimer';
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ __metadata:
prop-types: ^15.8.1
react: ^17.0.2
react-dom: ^17.0.2
tsup: ^5.12.7
peerDependencies:
react: ">=16.3.0"
languageName: unknown
Expand Down
Loading