diff --git a/docs/creating-a-new-sdk.md b/docs/creating-a-new-sdk.md index 986450b92b06..c3acd9c56bff 100644 --- a/docs/creating-a-new-sdk.md +++ b/docs/creating-a-new-sdk.md @@ -21,6 +21,17 @@ As a rule of thumb, we should follow these two ideas: 2. Instrumentation should follow common patterns for a specific platform. No config is always preferred, but if config is unavoidable, it should feel as native as possible to users of the given framework. +### Boilerplate Files + +Make sure all the boilerplate for your package is set up correctly. This can include, depending on the package: + +- `tsconfig.json`, `tsconfig.test.json`, `tsconfig.types.json`, `test/tsconfig.json` +- `oxlintsc.json` +- `rollup.*.config.mjs` +- `LICENSE` +- `README.md` +- `vite.config.ts` + ## 1. Browser SDKs A purely browser SDK generally should cover the following things: diff --git a/tsconfig-templates/README.md b/tsconfig-templates/README.md deleted file mode 100644 index f1b29fb1b3e9..000000000000 --- a/tsconfig-templates/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# `tsconfig` Templates - -Every package should get its own copy of the three files in this directory and the one in `test/` (which should go in an -analogous spot in the package). Package-specific options should go in `tsconfig.json` and test-specific options in -`tsconfig.test.json`. The `types` file shouldn't need to be modified, and only exists because tsconfigs don't support -multiple inheritance. The same goes for the file in `test/`, which only exists because VSCode only knows to look for a -file named (exactly) `tsconfig.json`. diff --git a/tsconfig-templates/tsconfig.json b/tsconfig-templates/tsconfig.json deleted file mode 100644 index bf45a09f2d71..000000000000 --- a/tsconfig-templates/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.json", - - "include": ["src/**/*"], - - "compilerOptions": { - // package-specific options - } -} diff --git a/tsconfig-templates/tsconfig.test.json b/tsconfig-templates/tsconfig.test.json deleted file mode 100644 index 1141567cdfec..000000000000 --- a/tsconfig-templates/tsconfig.test.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "./tsconfig.json", - - "include": ["test/**/*"], - - "compilerOptions": { - // should include all types from `./tsconfig.json` plus types for all test frameworks used - "types": [] - - // other package-specific, test-specific options - } -} diff --git a/tsconfig-templates/tsconfig.types.json b/tsconfig-templates/tsconfig.types.json deleted file mode 100644 index 65455f66bd75..000000000000 --- a/tsconfig-templates/tsconfig.types.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - - "compilerOptions": { - "declaration": true, - "declarationMap": true, - "emitDeclarationOnly": true, - "outDir": "build/types" - } -}