Skip to content

Commit c606774

Browse files
committed
Fixing the build-demo NPM script
1 parent edbbb7d commit c606774

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/build-demo.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ require.extensions['.html'] = function (module, filename) {
1212
};
1313

1414
const repoRoot = path.resolve(__dirname, '../');
15-
const demoBuiltRoot = path.join(repoRoot, 'demo-built');
16-
const demoBuilt = path.join(demoBuiltRoot, 'redux-autoform-bootstrap-ui');
15+
const demoBuilt = path.join(repoRoot, 'demo-built');
16+
//const demoBuilt = path.join(demoBuiltRoot, 'redux-autoform-bootstrap-ui');
1717

1818
const licenseSrc = path.join(repoRoot, 'LICENSE');
1919
const licenseDest = path.join(demoBuilt, 'LICENSE');
@@ -25,8 +25,7 @@ if (process.env.NODE_ENV !== 'production') {
2525
process.exit();
2626
}
2727

28-
rimraf(demoBuiltRoot)
29-
.then(() => fsep.mkdir(demoBuiltRoot))
28+
rimraf(demoBuilt)
3029
.then(() => fsep.mkdir(demoBuilt))
3130
.then(() => {
3231
console.log('writing static page files...');

0 commit comments

Comments
 (0)