initial commit
This commit is contained in:
16
packages/common/package.json
Normal file
16
packages/common/package.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "@personal-admin/common",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./src/index.ts",
|
||||
"types": "./src/index.ts"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.8.0"
|
||||
}
|
||||
}
|
||||
9
packages/common/src/index.ts
Normal file
9
packages/common/src/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const greet = (name: string): string => {
|
||||
return `Hello, ${name}!`;
|
||||
};
|
||||
|
||||
export type User = {
|
||||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
};
|
||||
12
packages/common/tsconfig.json
Normal file
12
packages/common/tsconfig.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"strict": true,
|
||||
"declaration": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user