refactor: move contract file outside src folder

This commit is contained in:
melvinchia3636
2026-06-08 20:32:57 +08:00
parent 237d1969e8
commit 064cedabf8
3 changed files with 22 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { createForgeProxy, globalProxyRegistry } from '@lifeforge/shared'
import contract from './contract'
import contract from '../contract'
globalProxyRegistry.set(contract, {
moduleId: '',

View File

@@ -2,10 +2,17 @@
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable", "ES2024.Object"],
"lib": [
"ES2020",
"DOM",
"DOM.Iterable",
"ES2024.Object"
],
"module": "ESNext",
"skipLibCheck": true,
"types": ["node"],
"types": [
"node"
],
/* Bundler mode */
"outDir": "${configDir}/tsbuild",
"moduleResolution": "bundler",
@@ -22,9 +29,17 @@
"rootDir": "../",
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"],
"@core/*": ["../core/*"]
"@/*": [
"./src/*"
],
"@core/*": [
"../core/*"
]
}
},
"include": ["./src/**/*", "./vite.config.ts"]
}
"include": [
"./src/**/*",
"./vite.config.ts",
"./contract.ts"
]
}