Skip to content

Commit

Permalink
Merge pull request #108 from rcpch:eatyourpeas/issue107
Browse files Browse the repository at this point in the history
build-vs-dist
  • Loading branch information
eatyourpeas authored Sep 13, 2024
2 parents fd6fd90 + 03236a3 commit 5c6b367
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 80 deletions.
126 changes: 54 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@rcpch/digital-growth-charts-react-component-library",
"version": "7.0.11",
"version": "7.0.12",
"description": "A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components",
"main": "dist/index.js",
"module": "dist/esm.index.js",
"types": "dist/index.d.ts",
"main": "build/index.js",
"module": "build/esm.index.js",
"types": "build/index.d.ts",
"scripts": {
"test": "jest --env=jsdom",
"build": "ROLLUP_WATCH=false rollup -c --bundleConfigAsCjs",
Expand All @@ -19,7 +19,7 @@
"Library",
"Rollup",
"Typescript",
"Sass",
"Styled-Components",
"Jest",
"Storybook"
],
Expand All @@ -44,7 +44,6 @@
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "11.1.6",
"@rollup/plugin-url": "8.0.2",
"@storybook/preset-scss": "^1.0.3",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
"@storybook/addon-links": "^8.0.4",
Expand All @@ -53,6 +52,7 @@
"@storybook/addon-styling-webpack": "^1.0.0",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/blocks": "^8.0.4",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^8.0.4",
"@storybook/react-webpack5": "^8.0.4",
"@storybook/test": "^8.0.4",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default [
},
{
input: 'src/index.ts',
output: [{ file: 'dist/types.d.ts', format: 'es' }],
output: [{ file: 'build/types.d.ts', format: 'es' }],
external: [],
plugins: [dts.default()],
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"typeRoots": ["./src/@types", "./node_modules/@types"]
},
"include": ["src/**/*", "src/chartdata/reference-data.d.ts", "src/assett/fonts/fonts.d.ts"],
"exclude": ["node_modules", "dist", "storybook-static", "src/**/*.stories.tsx", "src/**/*.test.tsx"]
"exclude": ["node_modules", "build", "storybook-static", "src/**/*.stories.tsx", "src/**/*.test.tsx"]
}

0 comments on commit 5c6b367

Please sign in to comment.