mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
Use node script instead of 'cp' command
this should also work on widnows
This commit is contained in:
parent
46e28e3bbe
commit
ff03697a1a
14
extensions/simple-browser/build/copy.js
Normal file
14
extensions/simple-browser/build/copy.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
fs.copyFileSync(
|
||||
path.join('node_modules', 'vscode-codicons', 'dist', 'codicon.css'),
|
||||
path.join('media', 'codicon.css'));
|
||||
|
||||
fs.copyFileSync(
|
||||
path.join('node_modules', 'vscode-codicons', 'dist', 'codicon.ttf'),
|
||||
path.join('media', 'codicon.ttf'));
|
|
@ -58,7 +58,7 @@
|
|||
"build-preview-production": "webpack --mode production",
|
||||
"compile-web": "npx webpack-cli --config extension-browser.webpack.config --mode none",
|
||||
"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose",
|
||||
"postinstall": "cp node_modules/vscode-codicons/dist/codicon.css media/ ; cp node_modules/vscode-codicons/dist/codicon.ttf media/"
|
||||
"postinstall": "node ./build/copy"
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-extension-telemetry": "0.1.1",
|
||||
|
|
Loading…
Reference in a new issue