mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
ci: Fix script path in the publishing workflow
This commit is contained in:
15
.github/scripts/trim-fe-packageJson.js
vendored
Normal file
15
.github/scripts/trim-fe-packageJson.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
const { writeFileSync } = require('fs');
|
||||
const { resolve } = require('path');
|
||||
const baseDir = resolve(__dirname, '..');
|
||||
|
||||
const trimPackageJson = (packageName) => {
|
||||
const filePath = resolve(baseDir, 'packages', packageName, 'package.json');
|
||||
const { scripts, peerDependencies, devDependencies, dependencies, ...packageJson } = require(
|
||||
filePath,
|
||||
);
|
||||
writeFileSync(filePath, JSON.stringify(packageJson, null, 2) + '\n', 'utf-8');
|
||||
};
|
||||
|
||||
trimPackageJson('@n8n/chat');
|
||||
trimPackageJson('design-system');
|
||||
trimPackageJson('editor-ui');
|
||||
Reference in New Issue
Block a user