diff --git a/node-sdk/sdks/demostf/src/demostf.ts b/javascript-sdk/demostf/api/demostf.ts similarity index 100% rename from node-sdk/sdks/demostf/src/demostf.ts rename to javascript-sdk/demostf/api/demostf.ts diff --git a/javascript-sdk/demostf/api/mod.ts b/javascript-sdk/demostf/api/mod.ts new file mode 100644 index 0000000..3aba2f5 --- /dev/null +++ b/javascript-sdk/demostf/api/mod.ts @@ -0,0 +1 @@ +export * from "./demostf.ts"; diff --git a/javascript-sdk/demostf/deno.json b/javascript-sdk/demostf/deno.json new file mode 100644 index 0000000..e930978 --- /dev/null +++ b/javascript-sdk/demostf/deno.json @@ -0,0 +1,9 @@ +{ + "name": "@tf2software/demostf", + "version": "0.0.1-alpha1", + "exports": { + ".": "./mod.ts", + "./api": "./mod.ts", + "./types": "./types/mod.ts" + } +} diff --git a/javascript-sdk/demostf/mod.ts b/javascript-sdk/demostf/mod.ts new file mode 100644 index 0000000..ba19c4d --- /dev/null +++ b/javascript-sdk/demostf/mod.ts @@ -0,0 +1,10 @@ +/** + * The [demos.tf](https://demos.tf/about) SDK + * + * This API provides both the types and methods to interact with the API + * + * @module + */ + +export * from "./types/mod.ts"; +export * from "./api/mod.ts"; diff --git a/node-sdk/lib/demostf-api-types/src/types/demo.ts b/javascript-sdk/demostf/types/demo.ts similarity index 100% rename from node-sdk/lib/demostf-api-types/src/types/demo.ts rename to javascript-sdk/demostf/types/demo.ts diff --git a/javascript-sdk/demostf/types/mod.ts b/javascript-sdk/demostf/types/mod.ts new file mode 100644 index 0000000..dd560c2 --- /dev/null +++ b/javascript-sdk/demostf/types/mod.ts @@ -0,0 +1 @@ +export * from "./demo.ts"; diff --git a/node-sdk/lib/demostf-api-types/package.json b/node-sdk/lib/demostf-api-types/package.json deleted file mode 100644 index a388825..0000000 --- a/node-sdk/lib/demostf-api-types/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "logstf-api-types", - "version": "0.0.0", - "license": "MIT", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "scripts": { - "build": "tsup" - }, - "devDependencies": { - "@types/node": "^18.11.17", - "tsup": "^6.5.0", - "typescript": "^4.9.4" - } -} diff --git a/node-sdk/lib/demostf-api-types/src/index.ts b/node-sdk/lib/demostf-api-types/src/index.ts deleted file mode 100644 index e69de29..0000000 diff --git a/node-sdk/lib/demostf-api-types/tsconfig.json b/node-sdk/lib/demostf-api-types/tsconfig.json deleted file mode 100644 index 12430c4..0000000 --- a/node-sdk/lib/demostf-api-types/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@sapphire/ts-config", - "compilerOptions": { - "rootDir": "src", - "module": "ESNext", - "target": "ESNext", - "outDir": "dist", - "emitDecoratorMetadata": false, - "tsBuildInfoFile": "dist/.tsbuildinfo", - "skipLibCheck": true, - "baseUrl": "src", - "lib": ["ESNext"], - "removeComments": true - } -} diff --git a/node-sdk/lib/demostf-api-types/tsup.config.ts b/node-sdk/lib/demostf-api-types/tsup.config.ts deleted file mode 100644 index 21aeb9a..0000000 --- a/node-sdk/lib/demostf-api-types/tsup.config.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { defineConfig } from "tsup"; - -export default defineConfig({ - clean: false, - bundle: false, - dts: true, - entry: ["src/**/*.ts", "!src/**/*.d.ts"], - format: ["esm", "cjs"], - minify: false, - tsconfig: "tsconfig.json", - target: "esnext", - splitting: false, - skipNodeModulesBundle: true, - sourcemap: true, - shims: false, - keepNames: true, -}); diff --git a/node-sdk/sdks/demostf/package.json b/node-sdk/sdks/demostf/package.json deleted file mode 100644 index 354d636..0000000 --- a/node-sdk/sdks/demostf/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "demostf", - "version": "0.0.0", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "license": "MIT", - "private": false, - "scripts": { - "build": "tsup" - }, - "dependencies": { - "common": "*" - }, - "devDependencies": { - "@sapphire/ts-config": "^3.3.4", - "@types/node": "^18.11.17", - "tsup": "^6.5.0", - "typescript": "^4.9.4" - } -} diff --git a/node-sdk/sdks/demostf/src/index.ts b/node-sdk/sdks/demostf/src/index.ts deleted file mode 100644 index e69de29..0000000 diff --git a/node-sdk/sdks/demostf/tsconfig.json b/node-sdk/sdks/demostf/tsconfig.json deleted file mode 100644 index 12430c4..0000000 --- a/node-sdk/sdks/demostf/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@sapphire/ts-config", - "compilerOptions": { - "rootDir": "src", - "module": "ESNext", - "target": "ESNext", - "outDir": "dist", - "emitDecoratorMetadata": false, - "tsBuildInfoFile": "dist/.tsbuildinfo", - "skipLibCheck": true, - "baseUrl": "src", - "lib": ["ESNext"], - "removeComments": true - } -} diff --git a/node-sdk/sdks/demostf/tsup.config.ts b/node-sdk/sdks/demostf/tsup.config.ts deleted file mode 100644 index ab302b2..0000000 --- a/node-sdk/sdks/demostf/tsup.config.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { defineConfig } from "tsup"; - -export default defineConfig({ - clean: false, - bundle: false, - dts: false, - entry: ["src/**/*.ts", "!src/**/*.d.ts"], - format: ["esm", "cjs"], - minify: false, - tsconfig: "tsconfig.json", - target: "esnext", - splitting: false, - skipNodeModulesBundle: true, - sourcemap: true, - shims: false, - keepNames: true, -});