mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Copy also images on node build
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
],
|
||||
"devDependencies": {
|
||||
"@oclif/dev-cli": "^1.22.2",
|
||||
"@types/copyfiles": "^2.1.1",
|
||||
"@types/inquirer": "^6.5.0",
|
||||
"@types/tmp": "^0.1.0",
|
||||
"@types/vorpal": "^1.11.0",
|
||||
@@ -56,6 +57,7 @@
|
||||
"@types/express": "^4.16.1",
|
||||
"@types/node": "^10.10.1",
|
||||
"change-case": "^3.1.0",
|
||||
"copyfiles": "^2.1.1",
|
||||
"inquirer": "^7.0.0",
|
||||
"n8n-core": "^0.10.0",
|
||||
"n8n-workflow": "^0.11.0",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { ChildProcess, spawn } from 'child_process';
|
||||
const copyfiles = require('copyfiles');
|
||||
import {
|
||||
readFile as fsReadFile,
|
||||
write as fsWrite,
|
||||
@@ -107,7 +108,7 @@ export async function buildFiles (options?: IBuildOptions): Promise<string> {
|
||||
buildProcess.on('exit', code => {
|
||||
// Remove the tmp tsconfig file
|
||||
tsconfigData.cleanup();
|
||||
resolve(outputDirectory);
|
||||
copyfiles([join(process.cwd(), './*.png'), outputDirectory], { up: true }, () => resolve(outputDirectory));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user