mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
13 lines
490 B
JavaScript
13 lines
490 B
JavaScript
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('design-system')
|
|
trimPackageJson('editor-ui')
|