diff --git a/packages/typography/index.js b/packages/typography/index.js deleted file mode 100644 index 6cc5bd0f3e..0000000000 --- a/packages/typography/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Agreement } from './src/Agreement'; -export { default as Disclaimer } from './src/Disclaimer'; diff --git a/packages/typography/package.json b/packages/typography/package.json index 9f7a218ea1..5f41aaf212 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -18,9 +18,16 @@ }, "license": "MIT", "author": "Tyson Warner ", - "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" }, @@ -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" diff --git a/packages/typography/src/index.ts b/packages/typography/src/index.ts new file mode 100644 index 0000000000..f14d763a66 --- /dev/null +++ b/packages/typography/src/index.ts @@ -0,0 +1,2 @@ +export { default as Agreement } from './Agreement'; +export { default as Disclaimer } from './Disclaimer'; diff --git a/yarn.lock b/yarn.lock index 8a7fcae18c..aaf4e16982 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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