From 699aedc272b4ba614280d2cfd92020734303a707 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 11 Apr 2024 00:51:52 +0800 Subject: [PATCH] chore: init client sdk --- packages/sdk/.gitignore | 1 + packages/sdk/package.json | 14 ++++++++++++++ packages/sdk/src/index.ts | 3 +++ packages/sdk/tsconfig.json | 10 ++++++++++ pnpm-workspace.yaml | 1 + 5 files changed, 29 insertions(+) create mode 100644 packages/sdk/.gitignore create mode 100644 packages/sdk/package.json create mode 100644 packages/sdk/src/index.ts create mode 100644 packages/sdk/tsconfig.json diff --git a/packages/sdk/.gitignore b/packages/sdk/.gitignore new file mode 100644 index 0000000..a65b417 --- /dev/null +++ b/packages/sdk/.gitignore @@ -0,0 +1 @@ +lib diff --git a/packages/sdk/package.json b/packages/sdk/package.json new file mode 100644 index 0000000..69f1731 --- /dev/null +++ b/packages/sdk/package.json @@ -0,0 +1,14 @@ +{ + "name": "tianji-client-sdk", + "version": "1.0.0", + "description": "", + "main": "lib/index.js", + "scripts": { + "build": "tsc", + "prepare": "tsc", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": ["tianji"], + "author": "moonrailgun ", + "license": "MIT" +} diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts new file mode 100644 index 0000000..feef3fb --- /dev/null +++ b/packages/sdk/src/index.ts @@ -0,0 +1,3 @@ +export function main() { + console.log('Hello World'); +} diff --git a/packages/sdk/tsconfig.json b/packages/sdk/tsconfig.json new file mode 100644 index 0000000..a7136bf --- /dev/null +++ b/packages/sdk/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "module": "ESNext", + "outDir": "./lib", + "baseUrl": ".", + "noEmit": false, + }, + "include": ["./src/**/*"] +} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a353506..b95b60b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,3 +3,4 @@ packages: - 'src/server' - 'src/shared' - 'website' + - 'packages/*'