From 63238b3af0632d6f621bf575ae92e161d9de173f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 30 Aug 2026 11:00:50 +0100 Subject: Move package.json and tsconfig.json to templates --- examples/01-struct/output/typescript/package.json | 17 +---------------- examples/01-struct/output/typescript/tsconfig.json | 22 +--------------------- examples/templates/typescript/package.json | 16 ++++++++++++++++ examples/templates/typescript/tsconfig.json | 21 +++++++++++++++++++++ 4 files changed, 39 insertions(+), 37 deletions(-) mode change 100644 => 120000 examples/01-struct/output/typescript/package.json mode change 100644 => 120000 examples/01-struct/output/typescript/tsconfig.json create mode 100644 examples/templates/typescript/package.json create mode 100644 examples/templates/typescript/tsconfig.json (limited to 'examples') diff --git a/examples/01-struct/output/typescript/package.json b/examples/01-struct/output/typescript/package.json deleted file mode 100644 index b2bd443..0000000 --- a/examples/01-struct/output/typescript/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "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/01-struct/output/typescript/package.json b/examples/01-struct/output/typescript/package.json new file mode 120000 index 0000000..0bc7349 --- /dev/null +++ b/examples/01-struct/output/typescript/package.json @@ -0,0 +1 @@ +../../../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 deleted file mode 100644 index 6a4848a..0000000 --- a/examples/01-struct/output/typescript/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "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 - } -} diff --git a/examples/01-struct/output/typescript/tsconfig.json b/examples/01-struct/output/typescript/tsconfig.json new file mode 120000 index 0000000..3c7cb2a --- /dev/null +++ b/examples/01-struct/output/typescript/tsconfig.json @@ -0,0 +1 @@ +../../../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 + } +} -- cgit v1.2.3