diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-30 11:00:50 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-30 11:00:50 +0100 |
| commit | 63238b3af0632d6f621bf575ae92e161d9de173f (patch) | |
| tree | 6258550b1ddc5c61fc5c6a26b9034734000dc1b8 /examples | |
| parent | 1ab92f34420bba4fa83da4ea518c862cab105273 (diff) | |
Move package.json and tsconfig.json to templates
Diffstat (limited to 'examples')
| l---------[-rw-r--r--] | examples/01-struct/output/typescript/package.json | 17 | ||||
| l---------[-rw-r--r--] | examples/01-struct/output/typescript/tsconfig.json | 22 | ||||
| -rw-r--r-- | examples/templates/typescript/package.json | 16 | ||||
| -rw-r--r-- | examples/templates/typescript/tsconfig.json | 21 |
4 files changed, 39 insertions, 37 deletions
diff --git a/examples/01-struct/output/typescript/package.json b/examples/01-struct/output/typescript/package.json index b2bd443..0bc7349 100644..120000 --- a/examples/01-struct/output/typescript/package.json +++ b/examples/01-struct/output/typescript/package.json @@ -1,16 +1 @@ -{ - "name": "example", - "version": "0.1.0", - "type": "module", - "scripts": { - "test": "mocha" - }, - "mocha": { - "spec": "src/**/*.test.ts" - }, - "devDependencies": { - "@types/mocha": "^10.0.10", - "mocha": "^11.8.0", - "typescript": "^7.0.2" - } -} +../../../templates/typescript/package.json
\ No newline at end of file diff --git a/examples/01-struct/output/typescript/tsconfig.json b/examples/01-struct/output/typescript/tsconfig.json index 6a4848a..3c7cb2a 100644..120000 --- a/examples/01-struct/output/typescript/tsconfig.json +++ b/examples/01-struct/output/typescript/tsconfig.json @@ -1,21 +1 @@ -{ - "include": ["src/**/*"], - "compilerOptions": { - "module": "nodenext", - "target": "esnext", - "types": [], - "sourceMap": true, - "declaration": true, - "declarationMap": true, - "noUncheckedIndexedAccess": true, - "exactOptionalPropertyTypes": true, - "strict": true, - "jsx": "react-jsx", - "verbatimModuleSyntax": true, - "isolatedModules": true, - "noUncheckedSideEffectImports": true, - "moduleDetection": "force", - "skipLibCheck": true, - "erasableSyntaxOnly": true - } -} +../../../templates/typescript/tsconfig.json
\ No newline at end of file diff --git a/examples/templates/typescript/package.json b/examples/templates/typescript/package.json new file mode 100644 index 0000000..b2bd443 --- /dev/null +++ b/examples/templates/typescript/package.json @@ -0,0 +1,16 @@ +{ + "name": "example", + "version": "0.1.0", + "type": "module", + "scripts": { + "test": "mocha" + }, + "mocha": { + "spec": "src/**/*.test.ts" + }, + "devDependencies": { + "@types/mocha": "^10.0.10", + "mocha": "^11.8.0", + "typescript": "^7.0.2" + } +} diff --git a/examples/templates/typescript/tsconfig.json b/examples/templates/typescript/tsconfig.json new file mode 100644 index 0000000..6a4848a --- /dev/null +++ b/examples/templates/typescript/tsconfig.json @@ -0,0 +1,21 @@ +{ + "include": ["src/**/*"], + "compilerOptions": { + "module": "nodenext", + "target": "esnext", + "types": [], + "sourceMap": true, + "declaration": true, + "declarationMap": true, + "noUncheckedIndexedAccess": true, + "exactOptionalPropertyTypes": true, + "strict": true, + "jsx": "react-jsx", + "verbatimModuleSyntax": true, + "isolatedModules": true, + "noUncheckedSideEffectImports": true, + "moduleDetection": "force", + "skipLibCheck": true, + "erasableSyntaxOnly": true + } +} |
