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