Skip to content

Commit 5c6b367

Browse files
authoredSep 13, 2024
Merge pull request #108 from rcpch:eatyourpeas/issue107
build-vs-dist
2 parents fd6fd90 + 03236a3 commit 5c6b367

File tree

4 files changed

+62
-80
lines changed

4 files changed

+62
-80
lines changed
 

‎package-lock.json

+54-72
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@rcpch/digital-growth-charts-react-component-library",
3-
"version": "7.0.11",
3+
"version": "7.0.12",
44
"description": "A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components",
5-
"main": "dist/index.js",
6-
"module": "dist/esm.index.js",
7-
"types": "dist/index.d.ts",
5+
"main": "build/index.js",
6+
"module": "build/esm.index.js",
7+
"types": "build/index.d.ts",
88
"scripts": {
99
"test": "jest --env=jsdom",
1010
"build": "ROLLUP_WATCH=false rollup -c --bundleConfigAsCjs",
@@ -19,7 +19,7 @@
1919
"Library",
2020
"Rollup",
2121
"Typescript",
22-
"Sass",
22+
"Styled-Components",
2323
"Jest",
2424
"Storybook"
2525
],
@@ -44,7 +44,6 @@
4444
"@rollup/plugin-terser": "0.4.4",
4545
"@rollup/plugin-typescript": "11.1.6",
4646
"@rollup/plugin-url": "8.0.2",
47-
"@storybook/preset-scss": "^1.0.3",
4847
"@storybook/addon-essentials": "^8.0.4",
4948
"@storybook/addon-interactions": "^8.0.4",
5049
"@storybook/addon-links": "^8.0.4",
@@ -53,6 +52,7 @@
5352
"@storybook/addon-styling-webpack": "^1.0.0",
5453
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
5554
"@storybook/blocks": "^8.0.4",
55+
"@storybook/preset-scss": "^1.0.3",
5656
"@storybook/react": "^8.0.4",
5757
"@storybook/react-webpack5": "^8.0.4",
5858
"@storybook/test": "^8.0.4",

‎rollup.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default [
5959
},
6060
{
6161
input: 'src/index.ts',
62-
output: [{ file: 'dist/types.d.ts', format: 'es' }],
62+
output: [{ file: 'build/types.d.ts', format: 'es' }],
6363
external: [],
6464
plugins: [dts.default()],
6565
},

‎tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"typeRoots": ["./src/@types", "./node_modules/@types"]
1515
},
1616
"include": ["src/**/*", "src/chartdata/reference-data.d.ts", "src/assett/fonts/fonts.d.ts"],
17-
"exclude": ["node_modules", "dist", "storybook-static", "src/**/*.stories.tsx", "src/**/*.test.tsx"]
17+
"exclude": ["node_modules", "build", "storybook-static", "src/**/*.stories.tsx", "src/**/*.test.tsx"]
1818
}

0 commit comments

Comments
 (0)