Compare commits

2 Commits

Author SHA1 Message Date
kevin-asprec
155f7af5ac feat: seed superadmin user on fresh deploy 2026-04-15 16:13:23 +08:00
kevin-asprec
88148e6fbb fix: compile shared package as CommonJS for NestJS compatibility 2026-04-13 16:53:04 +08:00
3 changed files with 18 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
-- Seed the platform superadmin user
-- Password: SuperAdmin@123 (bcrypt hash)
INSERT INTO "super_admins" ("id", "email", "password", "firstName", "lastName", "isActive", "createdAt", "updatedAt")
VALUES (
gen_random_uuid(),
'superadmin@fiberops.dev',
'$2b$12$wiW.foGm.5MD6FNz/HmBvuPaXJS56YPxxq5OEVCO6UXLOxTMvxL8S',
'Super',
'Admin',
true,
NOW(),
NOW()
)
ON CONFLICT ("email") DO NOTHING;

View File

@@ -2,8 +2,8 @@
"name": "@fiberops/shared", "name": "@fiberops/shared",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"main": "./src/index.ts", "main": "./dist/index.js",
"types": "./src/index.ts", "types": "./dist/index.d.ts",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"lint": "tsc --noEmit", "lint": "tsc --noEmit",

View File

@@ -1,15 +1,14 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2022", "target": "ES2022",
"module": "ESNext", "module": "CommonJS",
"moduleResolution": "bundler", "moduleResolution": "node",
"lib": ["ES2022"], "lib": ["ES2022"],
"strict": true, "strict": true,
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true, "skipLibCheck": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true,
"declaration": true, "declaration": true,
"sourceMap": true, "sourceMap": true,
"outDir": "./dist", "outDir": "./dist",