chore: TypeScript 5.8, nx migrate, dep updates - bundler resolution

This commit is contained in:
Nathan Walker
2025-07-05 10:48:10 -07:00
parent 32f2dd14e1
commit 48b02ffd1f
23 changed files with 2733 additions and 1396 deletions

View File

@ -13,18 +13,18 @@ const packageJson = JSON.parse(fs.readFileSync(packagePath));
const npmPackageName = packageJson.name;
console.log(`Building ${npmPackageName}...${publish ? 'and publishing.' : ''}`);
function cleanPackage() {
// helps remove unwanted properties which may be added by other tooling
const packageJsonPath = path.resolve(rootDir, 'dist', 'packages', packageName, 'package.json');
let packageJson = fs.readFileSync(packageJsonPath, { encoding: 'utf-8' });
if (packageJson) {
packageJson = parseJson(packageJson);
// we don't need module or type properties at the moment
delete packageJson['module'];
delete packageJson['type'];
fs.writeFileSync(packageJsonPath, serializeJson(packageJson));
}
}
// function cleanPackage() {
// // helps remove unwanted properties which may be added by other tooling
// const packageJsonPath = path.resolve(rootDir, 'dist', 'packages', packageName, 'package.json');
// let packageJson = fs.readFileSync(packageJsonPath, { encoding: 'utf-8' });
// if (packageJson) {
// packageJson = parseJson(packageJson);
// // we don't need module or type properties at the moment
// delete packageJson['module'];
// delete packageJson['type'];
// fs.writeFileSync(packageJsonPath, serializeJson(packageJson));
// }
// }
cleanPackage();
// cleanPackage();
console.log(`${npmPackageName} ready to publish.`);