template-saas/apps/backend/node_modules/libphonenumber-js/build-scripts/create-commonjs-package-json-file.js
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00

11 lines
358 B
JavaScript

// Creates a `package.json` file in the CommonJS `build` folder.
// That marks that whole folder as CommonJS so that Node.js doesn't complain
// about `require()`-ing those files.
import fs from 'fs'
fs.writeFileSync('./build/package.json', JSON.stringify({
name: 'libphonenumber-js/build',
type: 'commonjs',
private: true
}, null, 2), 'utf8')