Skip to content

Commit 2685b9f

Browse files
committed
[Fix] dist not generated on build
1 parent f51cbb3 commit 2685b9f

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
dist/
33
assets/
44
pages/
5-
test-components/
5+
styles/
66

77
# Files
88
README.md

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/package-lock.json
66
/yarn.lock
77
/.next/
8+
/.rollup.cache/
89

910
# test coverage
1011
coverage
@@ -14,6 +15,7 @@ build
1415
dist
1516
.rpt2_cache
1617
.eslintcache
18+
tsconfig.tsbuildinfo
1719

1820
# misc
1921
.DS_Store

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
assets
77
.git
88
pages
9+
styles
910
.next
1011
## Files
1112
babel.config.json

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
dist/
33
assets/
44
.next/
5+
.rollup.cache/
56

67
# Files
78
README.md

rollup.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import resolve from "@rollup/plugin-node-resolve";
33
import typescript from "@rollup/plugin-typescript";
44

55
const packageJson = require("./package.json");
6+
const options = require("./tsconfig.json");
67

7-
export default {
8+
module.exports = {
89
input: "src/index.tsx",
910
output: [
1011
{
@@ -21,5 +22,5 @@ export default {
2122
}
2223
],
2324
external: ["react", "dayjs"],
24-
plugins: [resolve(), commonjs(), typescript()]
25+
plugins: [resolve(), commonjs(), typescript({ ...options.compilerOptions, jsx: "react" })]
2526
};

0 commit comments

Comments
 (0)