chore: fix typo #2266

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2024-12-19 14:17:08 +08:00
parent 20a1eef0b9
commit f60c1c23b3
21 changed files with 23 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
import type { Document, PaginateModel } from 'mongoose'
import '@mx-space/complied/zx-global'
import '@mx-space/compiled/zx-global'
import type { ModelType } from '@typegoose/typegoose/lib/types'

View File

@@ -65,7 +65,7 @@
"@innei/next-async": "0.3.0",
"@innei/pretty-logger-nestjs": "0.3.3",
"@langchain/openai": "0.3.14",
"@mx-space/complied": "workspace:*",
"@mx-space/compiled": "workspace:*",
"@nestjs/cache-manager": "2.3.0",
"@nestjs/common": "10.4.13",
"@nestjs/core": "10.4.13",
@@ -170,4 +170,4 @@
"vitest": "1.5.2",
"zx": "7.2.3"
}
}
}

View File

@@ -18,7 +18,7 @@ import { cwd, isDev } from './env.global'
import { registerJSONGlobal } from './json.global'
import './dayjs.global'
import '@mx-space/complied/zx-global'
import '@mx-space/compiled/zx-global'
// 建立目录
function createAppFolders() {

View File

@@ -3,7 +3,7 @@ import { MongoClient } from 'mongodb'
import type {
BetterAuthOptions,
BetterAuthPlugin,
} from '@mx-space/complied/auth'
} from '@mx-space/compiled/auth'
import type { ServerResponse } from 'node:http'
import {
@@ -11,7 +11,7 @@ import {
betterAuth,
mongodbAdapter,
toNodeHandler,
} from '@mx-space/complied/auth'
} from '@mx-space/compiled/auth'
import { API_VERSION, CROSS_DOMAIN, MONGO_DB } from '~/app.config'
import { SECURITY } from '~/app.config.test'

View File

@@ -1,4 +1,4 @@
import type { BetterAuthOptions } from '@mx-space/complied/auth'
import type { BetterAuthOptions } from '@mx-space/compiled/auth'
import type { NestMiddleware, OnModuleInit } from '@nestjs/common'
import type { IncomingMessage, ServerResponse } from 'node:http'

View File

@@ -5,7 +5,7 @@ import { Types } from 'mongoose'
import type { TokenModel, UserModel } from '~/modules/user/user.model'
import type { TokenDto } from './auth.controller'
import { nanoid } from '@mx-space/complied'
import { nanoid } from '@mx-space/compiled'
import {
BadRequestException,
Inject,

View File

@@ -2,7 +2,7 @@ import fs from 'node:fs/promises'
import { FastifyReply, FastifyRequest } from 'fastify'
import { lookup } from 'mime-types'
import { nanoid } from '@mx-space/complied'
import { nanoid } from '@mx-space/compiled'
import {
Delete,
Get,

View File

@@ -10,7 +10,7 @@ import type { PostModel } from '../post/post.model'
import type { SubscribeTemplateRenderProps } from './subscribe.email.default'
import { Co } from '@innei/next-async'
import { nanoid as N } from '@mx-space/complied'
import { nanoid as N } from '@mx-space/compiled'
import { BadRequestException, Injectable } from '@nestjs/common'
import { BusinessEvents, EventScope } from '~/constants/business-event.constant'

View File

@@ -1,4 +1,4 @@
import { sleep } from '@mx-space/complied'
import { sleep } from '@mx-space/compiled'
export function scheduleMicrotask(callback: () => void) {
sleep(0).then(callback)

View File

@@ -1,7 +1,7 @@
import { stringify } from 'qs'
import { redisHelper } from 'test/helper/redis-mock.helper'
import { nanoid } from '@mx-space/complied'
import { nanoid } from '@mx-space/compiled'
import { BadRequestException, NotFoundException } from '@nestjs/common'
import { Test } from '@nestjs/testing'
import { getModelForClass } from '@typegoose/typegoose'

View File

@@ -38,13 +38,13 @@ export default defineConfig({
__dirname,
'./test/mock/decorators/auth.decorator.ts',
),
'@mx-space/complied/auth': resolve(
'@mx-space/compiled/auth': resolve(
__dirname,
'../../packages/complied/auth.ts',
'../../packages/compiled/auth.ts',
),
'@mx-space/complied': resolve(
'@mx-space/compiled': resolve(
__dirname,
'../../packages/complied/index.ts',
'../../packages/compiled/index.ts',
),
},
},

View File

@@ -11,7 +11,7 @@
"scripts": {
"format": "prettier --write \"apps/**/*.ts\" \"test/**/*.ts\" \"packages/**/*.ts\"",
"prepare": "husky install && node scripts/init-project.mjs && corepack enable",
"build:external": "pnpm -C \"packages/complied\" run build",
"build:external": "pnpm -C \"packages/compiled\" run build",
"build": "pnpm run build:external && pnpm -C \"apps/core\" run build",
"dev": "pnpm run build:external && pnpm -C \"apps/core\" run start",
"bundle": "pnpm run build:external && pnpm -C \"apps/core\" run bundle",

View File

@@ -1,5 +1,5 @@
{
"name": "@mx-space/complied",
"name": "@mx-space/compiled",
"private": true,
"type": "module",
"main": "dist/index.cjs",

10
pnpm-lock.yaml generated
View File

@@ -114,9 +114,9 @@ importers:
'@langchain/openai':
specifier: 0.3.14
version: 0.3.14(@langchain/core@0.3.20(openai@4.73.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)
'@mx-space/complied':
'@mx-space/compiled':
specifier: workspace:*
version: link:../../packages/complied
version: link:../../packages/compiled
'@nestjs/cache-manager':
specifier: 2.3.0
version: 2.3.0(@nestjs/common@10.4.13(class-transformer@0.5.1)(class-validator@0.13.2)(reflect-metadata@0.2.2)(rxjs@7.8.1))(@nestjs/core@10.4.13)(cache-manager@5.7.6)(rxjs@7.8.1)
@@ -474,11 +474,11 @@ importers:
specifier: 1.5.2
version: 1.5.2(@types/node@22.10.1)(terser@5.36.0)
packages/complied:
packages/compiled:
devDependencies:
better-auth:
specifier: 1.0.10
version: 1.0.10
version: 1.0.10(encoding@0.1.13)
nanoid:
specifier: 5.0.9
version: 5.0.9
@@ -9839,7 +9839,7 @@ snapshots:
bcryptjs@2.4.3: {}
better-auth@1.0.10:
better-auth@1.0.10(encoding@0.1.13):
dependencies:
'@better-fetch/fetch': 1.1.12
'@noble/ciphers': 0.6.0