Skip to content

Commit

Permalink
fix(asset-server-plugin): Fix build to export non-image file icon
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Mar 26, 2020
1 parent 46ff932 commit 63166a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/asset-server-plugin/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const fs = require('fs');
const path = require('path');

fs.copyFileSync(path.join(__dirname, 'src/file-icon.png'), path.join(__dirname, 'lib/src/file-icon.png'));
2 changes: 1 addition & 1 deletion packages/asset-server-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"scripts": {
"watch": "tsc -p ./tsconfig.build.json --watch",
"build": "rimraf lib && tsc -p ./tsconfig.build.json",
"build": "rimraf lib && tsc -p ./tsconfig.build.json && node build.js",
"lint": "tslint --fix --project ./",
"test": "jest --config ./jest.config.js",
"e2e": "jest --config ../../e2e-common/jest-config.js --runInBand --package=asset-server-plugin"
Expand Down

0 comments on commit 63166a2

Please sign in to comment.