File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1+ const path = require ( "path" ) ;
2+ const fs = require ( "fs" ) ;
3+
4+ const baseDirPath = `${ __dirname } /..` ;
5+ const src = path . normalize ( `${ baseDirPath } /public` ) ;
6+ const dst = path . normalize ( `${ baseDirPath } /build` ) ;
7+
8+ fs . copyFileSync ( src , dst ) ;
9+ console . log ( `Copied from ${ src } to ${ dst } ` ) ;
10+
11+
Original file line number Diff line number Diff line change 1212 "url" : " https://github.com/htbkoo/CssToAndFromReact.git"
1313 },
1414 "scripts" : {
15- "start " : " react-scripts-ts start " ,
16- "build" : " react-scripts-ts build" ,
15+ "build:copy " : " node ./bin/build " ,
16+ "build" : " node ./bin/rename -s public -d build" ,
1717 "test" : " cross-env CI=true react-scripts-ts test --env=jsdom" ,
1818 "test:unit" : " cross-env CI=true react-scripts-ts test --testPathPattern=.*/src/.*.test.tsx?$" ,
1919 "test-watch" : " react-scripts-ts test --env=jsdom" ,
You can’t perform that action at this time.
0 commit comments