wip: replace packages with pure files

This commit is contained in:
Justin Lin committed 2025-04-24 23:20:40 +08:00
1 parent 2d95ca382f
commit 87b8ca5d04
112 files changed
+740 -522

No files matched your search

-1
View File
@@ -12,7 +12,6 @@
"dev": "nodemon"
},
"dependencies": {
"@linux-odyssey/models": "*",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-basic-auth": "^1.2.1",
+1 -1
View File
@@ -1,4 +1,4 @@
import connectDB from '@linux-odyssey/models'
import connectDB from '@models'
import express from 'express'
import { engine } from 'express-handlebars'
import basicAuth from 'express-basic-auth'
+1 -1
View File
@@ -1,4 +1,4 @@
import { Command } from '@linux-odyssey/models'
import { Command } from '@models'
import Pagination from './pagination.js'
// eslint-disable-next-line import/prefer-default-export
+1 -1
View File
@@ -1,6 +1,6 @@
/* eslint-disable object-shorthand */
/* eslint-disable func-names */
import { UserProfile } from '@linux-odyssey/models'
import { UserProfile } from '@models'
export function questList() {
return UserProfile.aggregate([
+1 -1
View File
@@ -1,4 +1,4 @@
import { Command, Session } from '@linux-odyssey/models'
import { Command, Session } from '@models'
import Pagination from './pagination.js'
import {
CommandObject,
+1 -1
View File
@@ -1,4 +1,4 @@
import { Session, User } from '@linux-odyssey/models'
import { Session, User } from '@models'
import { Types } from 'mongoose'
import Pagination from './pagination.js'
import { IUser, UserSessionDetail } from '../interface.js'
File renamed without changes.
-17
View File
@@ -1,17 +0,0 @@
{
"name": "@linux-odyssey/constants",
"type": "module",
"version": "1.0.0",
"private": true,
"main": "dist/index.js",
"exports": "./dist/index.js",
"types": "dist/index.d.ts",
"license": "GPL",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
},
"dependencies": {
"zod": "^3.23.8"
}
}
File renamed without changes.
-12
View File
@@ -1,12 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"module": "Node16",
"moduleResolution": "node16",
"outDir": "./dist",
"rootDir": "src"
},
"include": ["*.js", "*.ts", "src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
View File
@@ -0,0 +1,3 @@
export { default as File, FileObject } from './file'
export { default as FileNode, IFileNode } from './fileNode'
export { default as FileGraph, FileGraphUpdateEvent } from './fileGraph'
-20
View File
@@ -1,20 +0,0 @@
{
"name": "@linux-odyssey/file-graph",
"version": "1.0.0",
"type": "module",
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts"
}
},
"license": "MIT",
"scripts": {
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
"dev": "tsc -w",
"test": "yarn build && jest"
}
}
-3
View File
@@ -1,3 +0,0 @@
export { default as File, FileObject } from './file.js'
export { default as FileNode, IFileNode } from './fileNode.js'
export { default as FileGraph, FileGraphUpdateEvent } from './fileGraph.js'
-9
View File
@@ -1,9 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"outDir": "./dist/cjs",
"declarationDir": "./dist/types"
}
}
-15
View File
@@ -1,15 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"composite": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./dist/esm",
"declarationDir": "./dist/types",
"target": "ES2020",
"useDefineForClassFields": true
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
import { FileGraph, FileNode, IFileNode } from '@linux-odyssey/file-graph'
import { FileGraph, IFileNode } from '../../packages/file-graph'
import { Quest } from './Quest'
import {
IQuest,
@@ -7,7 +7,6 @@ import {
IFileExistenceChecker,
IResponse,
ITask,
ICommandParams,
} from './schema'
export class GameSession {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-21
View File
@@ -1,21 +0,0 @@
{
"name": "@linux-odyssey/game",
"version": "1.0.0",
"main": "dist/index.js",
"exports": {
".": "./dist/index.js"
},
"license": "MIT",
"scripts": {
"build": "tsc -b",
"generate": "tsx src/cli.ts"
},
"dependencies": {
"@linux-odyssey/file-graph": "*",
"zod": "^3.23.8"
},
"devDependencies": {
"tsx": "^4.19.3",
"zod-to-json-schema": "^3.24.5"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
import { IFileNode } from '@linux-odyssey/file-graph'
import { IFileNode } from '../../file-graph'
export * from './condition.js'
export * from './stage.js'
File renamed without changes.
File renamed without changes.
File renamed without changes.
-11
View File
@@ -1,11 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"composite": true,
"module": "CommonJS",
"moduleResolution": "Node"
},
"include": ["src"]
}
File renamed without changes.
File renamed without changes.
-17
View File
@@ -1,17 +0,0 @@
{
"name": "@linux-odyssey/models",
"type": "module",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "GPL",
"exports": "./dist/index.js",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
},
"dependencies": {
"@types/mongoose": "^5.11.97",
"mongoose": "^8.0.3"
}
}
File renamed without changes.
-10
View File
@@ -1,10 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"composite": true,
"outDir": "./dist"
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-13
View File
@@ -1,13 +0,0 @@
{
"name": "@linux-odyssey/utils",
"version": "1.0.0",
"main": "dist/index.js",
"type": "module",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
}
}
-11
View File
@@ -1,11 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "./dist",
"composite": true,
"allowJs": false
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}