Skip to content

Commit 5fcae99

Browse files
committed
🚀 chore: better packages
1 parent 0a55fa2 commit 5fcae99

File tree

412 files changed

+4358
-6916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+4358
-6916
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "@cs-magic/codebase-ts",
33
"version": "0.8.1886",
4-
"author": "markshawn2020 <[email protected]>",
5-
"repository": "git@github.com:cs-magic/codebase-ts.git",
4+
"author": "Mark <[email protected]>",
5+
"repository": "https://github.com/cs-magic/codebase-ts",
66
"bugs": "https://github.com/cs-magic/codebase-ts/issues",
77
"license": "MIT",
8-
"private": true,
98
"workspaces": [
109
"packages/*",
10+
"packages/backend/*",
11+
"packages/frontend/*",
12+
"packages/tools/*",
1113
"packages_wechaty/*",
12-
"apps/*",
1314
"apps/neurora_home/*",
1415
"apps/neurora_assistant/*",
1516
"apps/neurora_assistant/frontend/*",
@@ -116,7 +117,6 @@
116117
"ts-patch": "^3.2.1"
117118
},
118119
"devDependencies": {
119-
"@cs-magic/tools": "workspace:^",
120120
"@prisma/client": "^5.19.1",
121121
"@tailwindcss/forms": "^0.5.9",
122122
"@tailwindcss/typography": "^0.5.15",
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@cs-magic/common",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"type": "module",
5-
"main": "./dist/index.js",
5+
"main": "dist/index.js",
66
"exports": {
77
".": "./dist/index.js",
88
"./dist/*": "./dist/*",
@@ -22,7 +22,6 @@
2222
},
2323
"dependencies": {
2424
"@alicloud/dysmsapi20170525": "^3.0.0",
25-
"@cs-magic/shadcn": "workspace:^",
2625
"@prisma/client": "*",
2726
"@stripe/react-stripe-js": "^2.8.1",
2827
"@stripe/stripe-js": "^4.7.0",
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { AxiosInstance } from "axios"
22

3-
import { createHttpInstance } from "./core.js"
3+
import { createHttpInstance } from "src/api/core"
44

55
export const api: AxiosInstance = createHttpInstance()

packages/common/src/api/backend-api.ts renamed to packages/backend/common/src/api/backend-api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { env } from "../env/index.js"
2-
import logger from "../log/index.js"
1+
import { env } from "src/env"
2+
import logger from "src/log"
33

4-
import { createHttpInstance } from "./core.js"
4+
import { createHttpInstance } from "src/api/core"
55

66
const baseURL = env?.NEXT_PUBLIC_BACKEND_URL
77
// logger.debug(`backend api baseURL: ${baseURL}`)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import axios, { AxiosError, type AxiosResponse, type CreateAxiosDefaults } from "axios"
55

6-
import { logger } from "../log/index.js"
6+
import { logger } from "src/log"
77

88
declare module "axios" {
99
export interface AxiosRequestConfig {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from "src/api/api"
2+
export * from "src/api/backend-api"
3+
export * from "src/api/core"
4+
export * from "src/api/schema"
File renamed without changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export * from "src/auth/config"
2+
3+
export * from "src/auth/providers/profile/const"
4+
export * from "src/auth/providers/wechat/config"
5+
export * from "src/auth/providers/wechat/schema"
6+
7+
export { getWechatAuthorizationUrl } from "src/auth/providers/wechat/utils"
8+
export { getWechatUserProfile } from "src/auth/providers/wechat/utils"
9+
export { adaptWechatAuthToken } from "src/auth/providers/wechat/utils"
10+
export { refreshWechatAuthToken } from "src/auth/providers/wechat/utils"
11+
export { getWechatAuthToken } from "src/auth/providers/wechat/utils"
12+
export { fetchWechatApi } from "src/auth/providers/wechat/utils"
13+
export { WechatAuth } from "src/auth/providers/wechat/sdk"

0 commit comments

Comments
 (0)