remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/apps/remixdesktop/after-pack.js

15 lines
498 B

2 months ago
const fs = require('fs-extra');
const path = require('path');
exports.default = async function (context) {
2 months ago
console.log('Running after-pack hook', context);
2 months ago
const resourcesPath = context.appOutDir;
console.log('resourcesPath', resourcesPath);
console.log('context outdir', context.appOutDir);
// Copy the node-pty module to the app folder
await fs.copy(
2 months ago
path.join('./node_modules', 'node-pty'),
2 months ago
path.join(resourcesPath, 'node_modules', 'node-pty')
);
};