Skip to content

Commit

Permalink
💚 - ci: attempt to fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Feb 19, 2024
1 parent 45879b4 commit 0c53d21
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: npm install

- name: Build source
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: npm run build

- name: build package
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"rollup": "rollup -c",
"prepare": "husky install"
},
"exports": {
".": "./dist/esm/index.js",
"./components": "./dist/esm/components/index.js",
"./style": "./dist/esm/index.css"
},
"main": "dist/cjs/index.js",
"module": "src/esm/index.js",
"style": "dist/esm/index.css",
Expand All @@ -40,7 +35,12 @@
"dist",
"src"
],
"types": "dist/types/index.d.ts",
"exports": {
".": "./dist/esm/index.js",
"./components": "./dist/esm/componets/index.js",
"./style": "./dist/esm/index.css"
},
"types": "dist/esm/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/maykinmedia/maykin-ui.git"
Expand Down
15 changes: 9 additions & 6 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import peerDepsExternal from "rollup-plugin-peer-deps-external";
import styles from "rollup-plugin-styler";
import postcss_url from "postcss-url";
import json from "@rollup/plugin-json";
import { dts } from "rollup-plugin-dts";
// import { dts } from "rollup-plugin-dts";

export default [
{
Expand Down Expand Up @@ -51,12 +51,15 @@ export default [
}),
terser()
]
}, {
input: "dist/esm/index.js",
output: [{ file: "dist/types/index.d.ts", format: "esm" }],
external: [/\.scss$/],
plugins: [dts()]

},
// FIXME: Replaced with "moduleResolution": "bundler",
// {
// input: "dist/esm/index.js",
// output: [{ file: "dist/types//index.d.ts", format: "esm" }],
// external: [/\.scss$/],
// plugins: [dts()]
// },
{ input: "src/lib/i18n/compiled/en.json", output: { dir: "dist/messages" }, plugins: [json()] },
{ input: "src/lib/i18n/compiled/nl.json", output: { dir: "dist/messages" }, plugins: [json()] }
];
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ESNext",
"outDir": "dist",
"strict": true,
"jsx": "react",
"declaration": true,
"declarationDir": "dist/types",
"moduleResolution": "node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
}
},
"exclude": ["**/*.stories.tsx", "**/*.stories.tsx", "**/*.stories.md", ".storybook"]
}

0 comments on commit 0c53d21

Please sign in to comment.