Skip to content

Commit 45c62e7

Browse files
committed
fix(build): copy styles to build directory
1 parent 2a9afd9 commit 45c62e7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"flow.lint": "npm run flow.tslint",
4141
"flow.build": "npm run flow.clean && npm run flow.compile && webpack --progress --color",
4242
"flow.serve": "webpack-dev-server --hot --inline --colors --display-error-details --display-cached",
43-
"pre:publish": "npm run flow.clean && npm run flow.lint && npm run test && npm run flow.compile",
43+
"pre:publish": "npm run flow.clean && npm run flow.lint && npm run test && npm run flow.compile && cp src/styles.css dist",
4444
"post:publish": "npm run flow.deploy:gh-pages",
4545
"start": "npm run flow.serve",
4646
"test": "karma start karma.conf.js"

publish.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/node
22

33
const _ = require('lodash');
4-
const fs = require('fs');
4+
const fs = require('fs');
55
const shell = require('shelljs');
66
const pkg = require('./package.json');
77

88
shell.exec('npm run pre:publish');
99
fs.writeFileSync('dist/package.json', JSON.stringify(_.omit(pkg, ['private']), null, 2), {encoding: 'utf-8'});
1010

1111
shell.exec('npm publish dist');
12-
shell.exec('npm run post:publish');
12+
shell.exec('npm run post:publish');

0 commit comments

Comments
 (0)