Files
kube-now/.erb/scripts/link-modules.ts
Junior 15e6692647
Some checks failed
Test / test (macos-latest) (push) Waiting to run
Test / test (windows-latest) (push) Waiting to run
Test / test (ubuntu-latest) (push) Failing after 13m2s
commit inicial do projeto
2026-04-21 18:18:56 -03:00

15 lines
446 B
TypeScript

import fs from 'fs';
import webpackPaths from '../configs/webpack.paths';
const { srcNodeModulesPath, appNodeModulesPath, erbNodeModulesPath } =
webpackPaths;
if (fs.existsSync(appNodeModulesPath)) {
if (!fs.existsSync(srcNodeModulesPath)) {
fs.symlinkSync(appNodeModulesPath, srcNodeModulesPath, 'junction');
}
if (!fs.existsSync(erbNodeModulesPath)) {
fs.symlinkSync(appNodeModulesPath, erbNodeModulesPath, 'junction');
}
}