refactor: rename package scope from @sexy.pivoine.art to @sexy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -126,7 +126,7 @@ pnpm dev:data
|
||||
pnpm dev:backend
|
||||
|
||||
# Start the frontend (port 3000, proxied to :4000)
|
||||
pnpm --filter @sexy.pivoine.art/frontend dev
|
||||
pnpm --filter @sexy/frontend dev
|
||||
```
|
||||
|
||||
Visit `http://localhost:3000` and let the experience begin... 💋
|
||||
|
||||
@@ -51,7 +51,7 @@ services:
|
||||
COOKIE_SECRET: change-me-in-production
|
||||
SMTP_HOST: localhost
|
||||
SMTP_PORT: 587
|
||||
EMAIL_FROM: noreply@sexy.pivoine.art
|
||||
EMAIL_FROM: noreply@sexy
|
||||
PUBLIC_URL: http://localhost:3000
|
||||
depends_on:
|
||||
postgres:
|
||||
|
||||
10
package.json
10
package.json
@@ -5,12 +5,12 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build:frontend": "pnpm --filter @sexy.pivoine.art/frontend build",
|
||||
"build:backend": "pnpm --filter @sexy.pivoine.art/backend build",
|
||||
"dev:buttplug": "pnpm --filter @sexy.pivoine.art/buttplug serve",
|
||||
"build:frontend": "pnpm --filter @sexy/frontend build",
|
||||
"build:backend": "pnpm --filter @sexy/backend build",
|
||||
"dev:buttplug": "pnpm --filter @sexy/buttplug serve",
|
||||
"dev:data": "docker compose up -d postgres redis",
|
||||
"dev:backend": "pnpm --filter @sexy.pivoine.art/backend dev",
|
||||
"dev": "pnpm dev:data && pnpm dev:backend & pnpm dev:buttplug & pnpm --filter @sexy.pivoine.art/frontend dev",
|
||||
"dev:backend": "pnpm --filter @sexy/backend dev",
|
||||
"dev": "pnpm dev:data && pnpm dev:backend & pnpm dev:buttplug & pnpm --filter @sexy/frontend dev",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"format": "prettier --write .",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@sexy.pivoine.art/backend",
|
||||
"name": "@sexy/backend",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
@@ -20,8 +20,8 @@
|
||||
"@fastify/static": "^8.1.1",
|
||||
"@pothos/core": "^4.4.0",
|
||||
"@pothos/plugin-errors": "^4.2.0",
|
||||
"@sexy.pivoine.art/email": "workspace:*",
|
||||
"@sexy.pivoine.art/types": "workspace:*",
|
||||
"@sexy/email": "workspace:*",
|
||||
"@sexy/types": "workspace:*",
|
||||
"argon2": "^0.43.0",
|
||||
"bullmq": "^5.70.4",
|
||||
"drizzle-orm": "^0.44.1",
|
||||
|
||||
@@ -22,7 +22,7 @@ import type {
|
||||
RecentPoint,
|
||||
UserGamification,
|
||||
Achievement,
|
||||
} from "@sexy.pivoine.art/types";
|
||||
} from "@sexy/types";
|
||||
|
||||
type AdminUserDetail = User & { photos: ModelPhoto[] };
|
||||
import { builder } from "../builder";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import nodemailer from "nodemailer";
|
||||
import { renderVerification, renderPasswordReset } from "@sexy.pivoine.art/email";
|
||||
import { renderVerification, renderPasswordReset } from "@sexy/email";
|
||||
import { mailQueue } from "../queues/index.js";
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
@@ -14,7 +14,7 @@ const transporter = nodemailer.createTransport({
|
||||
: undefined,
|
||||
});
|
||||
|
||||
const FROM = process.env.EMAIL_FROM || "noreply@sexy.pivoine.art";
|
||||
const FROM = process.env.EMAIL_FROM || "noreply@sexy";
|
||||
|
||||
export async function sendVerification(email: string, token: string): Promise<void> {
|
||||
const { subject, html } = await renderVerification({ token });
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@sexy.pivoine.art/buttplug",
|
||||
"name": "@sexy/buttplug",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@sexy.pivoine.art/email",
|
||||
"name": "@sexy/email",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@sexy.pivoine.art/frontend",
|
||||
"name": "@sexy/frontend",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
@@ -11,7 +11,7 @@
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json --threshold warning"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sexy.pivoine.art/buttplug": "workspace:*",
|
||||
"@sexy/buttplug": "workspace:*",
|
||||
"@iconify-json/ri": "^1.2.10",
|
||||
"@iconify/tailwind4": "^1.2.1",
|
||||
"@internationalized/date": "^3.12.0",
|
||||
@@ -40,7 +40,7 @@
|
||||
"vite": "^7.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sexy.pivoine.art/types": "workspace:*",
|
||||
"@sexy/types": "workspace:*",
|
||||
"graphql": "^16.11.0",
|
||||
"graphql-request": "^7.1.2",
|
||||
"javascript-time-ago": "^2.6.4",
|
||||
|
||||
@@ -27,10 +27,10 @@ export type {
|
||||
RecentPoint,
|
||||
UserGamification,
|
||||
Achievement,
|
||||
} from "@sexy.pivoine.art/types";
|
||||
} from "@sexy/types";
|
||||
|
||||
import type { CurrentUser } from "@sexy.pivoine.art/types";
|
||||
import type { ButtplugClientDevice } from "@sexy.pivoine.art/buttplug";
|
||||
import type { CurrentUser } from "@sexy/types";
|
||||
import type { ButtplugClientDevice } from "@sexy/buttplug";
|
||||
|
||||
// ─── Frontend-only types ─────────────────────────────────────────────────────
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { _ } from "svelte-i18n";
|
||||
import Meta from "$lib/components/meta/meta.svelte";
|
||||
import type * as ButtplugTypes from "@sexy.pivoine.art/buttplug";
|
||||
import type * as ButtplugTypes from "@sexy/buttplug";
|
||||
import Button from "$lib/components/ui/button/button.svelte";
|
||||
import { onMount } from "svelte";
|
||||
import DeviceCard from "$lib/components/device-card/device-card.svelte";
|
||||
|
||||
@@ -10,7 +10,7 @@ export default defineConfig({
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
external: ["@sexy.pivoine.art/buttplug"],
|
||||
external: ["@sexy/buttplug"],
|
||||
},
|
||||
},
|
||||
server: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@sexy.pivoine.art/types",
|
||||
"name": "@sexy/types",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"types": "./src/index.ts",
|
||||
|
||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@@ -53,10 +53,10 @@ importers:
|
||||
'@pothos/plugin-errors':
|
||||
specifier: ^4.2.0
|
||||
version: 4.9.0(@pothos/core@4.12.0(graphql@16.13.1))(graphql@16.13.1)
|
||||
'@sexy.pivoine.art/email':
|
||||
'@sexy/email':
|
||||
specifier: workspace:*
|
||||
version: link:../email
|
||||
'@sexy.pivoine.art/types':
|
||||
'@sexy/types':
|
||||
specifier: workspace:*
|
||||
version: link:../types
|
||||
argon2:
|
||||
@@ -173,7 +173,7 @@ importers:
|
||||
|
||||
packages/frontend:
|
||||
dependencies:
|
||||
'@sexy.pivoine.art/types':
|
||||
'@sexy/types':
|
||||
specifier: workspace:*
|
||||
version: link:../types
|
||||
graphql:
|
||||
@@ -207,7 +207,7 @@ importers:
|
||||
'@lucide/svelte':
|
||||
specifier: ^0.561.0
|
||||
version: 0.561.0(svelte@5.53.7)
|
||||
'@sexy.pivoine.art/buttplug':
|
||||
'@sexy/buttplug':
|
||||
specifier: workspace:*
|
||||
version: link:../buttplug
|
||||
'@sveltejs/adapter-node':
|
||||
|
||||
Reference in New Issue
Block a user