mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix yarn install error
This commit is contained in:
parent
21072fb1f0
commit
95fccb8880
2 changed files with 2 additions and 18 deletions
|
|
@ -12,8 +12,8 @@
|
|||
"test:unit": "ava test/unit",
|
||||
"test:unit:watch": "yarn run test:unit -- --watch",
|
||||
"prepush": "yarn test",
|
||||
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty",
|
||||
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
|
||||
"postinstall": "webpack --config-name hyper-app && electron-builder install-app-deps && yarn run rebuild-node-pty && cp -r ./target/node_modules ./app/",
|
||||
"rebuild-node-pty": "electron-rebuild -f -w target/node_modules/node-pty -m target",
|
||||
"dist":
|
||||
"yarn run build && cross-env BABEL_ENV=production babel --out-file target/renderer/bundle.js --no-comments --minified target/renderer/bundle.js && build",
|
||||
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
const path = require('path');
|
||||
const exec = require('child_process').exec;
|
||||
|
||||
const webpack = require('webpack');
|
||||
const Copy = require('copy-webpack-plugin');
|
||||
|
|
@ -49,22 +48,7 @@ module.exports = [
|
|||
to: './keymaps',
|
||||
flatten: true
|
||||
}
|
||||
// {
|
||||
// from: './app/node_modules', // gives really long output in webpack, used cp instead
|
||||
// to: './node_modules'
|
||||
// }
|
||||
]),
|
||||
|
||||
{
|
||||
apply: compiler => {
|
||||
compiler.hooks.afterEmit.tap('AfterEmitPlugin', () => {
|
||||
exec('cp -r ./app/node_modules ./target', (err, stdout, stderr) => {
|
||||
if (stdout) process.stdout.write(stdout);
|
||||
if (stderr) process.stderr.write(stderr);
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
new ForkTsCheckerWebpackPlugin()
|
||||
],
|
||||
target: 'electron-main'
|
||||
|
|
|
|||
Loading…
Reference in a new issue