diff --git a/templates/typescript/azion-atlas/.vscode/settings.json b/templates/typescript/azion-atlas/.vscode/settings.json index 1aabb1d2..ce31e9da 100644 --- a/templates/typescript/azion-atlas/.vscode/settings.json +++ b/templates/typescript/azion-atlas/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "eslint.validate": [ "javascript" diff --git a/templates/typescript/azion-atlas/.vulcan b/templates/typescript/azion-atlas/.vulcan deleted file mode 100644 index 32c1d84d..00000000 --- a/templates/typescript/azion-atlas/.vulcan +++ /dev/null @@ -1,4 +0,0 @@ -entry=main.ts -preset=typescript -mode=compute -useNodePolyfills=true diff --git a/templates/typescript/azion-atlas/azion.config.mjs b/templates/typescript/azion-atlas/azion.config.ts similarity index 100% rename from templates/typescript/azion-atlas/azion.config.mjs rename to templates/typescript/azion-atlas/azion.config.ts diff --git a/templates/typescript/azion-atlas/tsconfig.json b/templates/typescript/azion-atlas/tsconfig.json index 8fe2abbe..39a1b9a9 100644 --- a/templates/typescript/azion-atlas/tsconfig.json +++ b/templates/typescript/azion-atlas/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "NodeNext", "resolveJsonModule": true, "declaration": true, "removeComments": true, diff --git a/templates/typescript/simple-ts-router/azion.config.js b/templates/typescript/simple-ts-router/azion.config.js deleted file mode 100644 index be7a0881..00000000 --- a/templates/typescript/simple-ts-router/azion.config.js +++ /dev/null @@ -1,10 +0,0 @@ -import { defineConfig } from 'azion'; - -export default defineConfig({ - build: { - entry: 'main.ts', - preset: { - name: 'typescript', - }, - }, -}); diff --git a/templates/typescript/simple-ts-router/azion.config.ts b/templates/typescript/simple-ts-router/azion.config.ts new file mode 100644 index 00000000..4ace662f --- /dev/null +++ b/templates/typescript/simple-ts-router/azion.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from "azion"; + +export default defineConfig({ + build: { + entry: "main.ts", + preset: { + name: "typescript", + }, + }, +}); diff --git a/templates/typescript/simple-ts-router/package-lock.json b/templates/typescript/simple-ts-router/package-lock.json new file mode 100644 index 00000000..ab07637c --- /dev/null +++ b/templates/typescript/simple-ts-router/package-lock.json @@ -0,0 +1,73 @@ +{ + "name": "simple-ts-router", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "simple-ts-router", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "azion": "latest", + "itty-router": "^4.2.0" + }, + "devDependencies": { + "typescript": "^5.4.2" + } + }, + "node_modules/azion": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.7.0.tgz", + "integrity": "sha512-qJHuw8xkl09zfUTxQMM7a9UgOGXszl/cQZW+/d9bzFhspr7ZYwTVTDRU3pgCXwMcOpi6V/h0JQWxICJeg4eunQ==", + "hasInstallScript": true, + "dependencies": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "bin": { + "azion": "bin/azion" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/itty-router": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/itty-router/-/itty-router-4.2.2.tgz", + "integrity": "sha512-KegPW0l9SNPadProoFT07AB84uOqLUwzlXQ7HsqkS31WUrxkjdhcemRpTDUuetbMJ89uBtWeQSVoiEmUAu31uw==" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/typescript": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/templates/typescript/simple-ts-router/package.json b/templates/typescript/simple-ts-router/package.json index 319922db..98ac2c52 100644 --- a/templates/typescript/simple-ts-router/package.json +++ b/templates/typescript/simple-ts-router/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "description": "", "main": "main.ts", - "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/templates/typescript/simple-ts-router/tsconfig.json b/templates/typescript/simple-ts-router/tsconfig.json index 199045a3..53782fd1 100644 --- a/templates/typescript/simple-ts-router/tsconfig.json +++ b/templates/typescript/simple-ts-router/tsconfig.json @@ -25,9 +25,9 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "ES2022", /* Specify what module code is generated. */ + "module": "NodeNext", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ - "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */ + "moduleResolution": "nodenext", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */