Skip to content

Commit 0c961ee

Browse files
committed
fix jest config path for typescript setup, fix prod output folder for typescript project
1 parent 8d5e3e6 commit 0c961ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function copyTypeScriptFiles() {
128128
shell.cp('bin/typescript/App.test.js', 'src/components/App.test.js');
129129
shell.cp(
130130
'bin/typescript/jest.config.js',
131-
'src/components/jest.config.js',
131+
'jest.config.js',
132132
);
133133
shell.cp('bin/typescript/index.tsx', 'src/index.tsx');
134134
resolve();

bin/typescript/webpack.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const config: webpack.Configuration = {
1111
mode: "production",
1212
entry: "./src/index.tsx",
1313
output: {
14-
path: path.resolve(__dirname, "dist"),
14+
path: path.resolve(__dirname, "public"),
1515
filename: "bundle.js"
1616
},
1717
resolve: {

0 commit comments

Comments
 (0)