Skip to content

Commit

Permalink
feat: use azion.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jotanarciso committed Sep 25, 2024
1 parent 325b239 commit ac5cdae
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 19 deletions.
2 changes: 1 addition & 1 deletion templates/typescript/azion-atlas/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript"
Expand Down
4 changes: 0 additions & 4 deletions templates/typescript/azion-atlas/.vulcan

This file was deleted.

2 changes: 1 addition & 1 deletion templates/typescript/azion-atlas/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"module": "NodeNext",
"resolveJsonModule": true,
"declaration": true,
"removeComments": true,
Expand Down
10 changes: 0 additions & 10 deletions templates/typescript/simple-ts-router/azion.config.js

This file was deleted.

10 changes: 10 additions & 0 deletions templates/typescript/simple-ts-router/azion.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "azion";

export default defineConfig({
build: {
entry: "main.ts",
preset: {
name: "typescript",
},
},
});
73 changes: 73 additions & 0 deletions templates/typescript/simple-ts-router/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion templates/typescript/simple-ts-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "1.0.0",
"description": "",
"main": "main.ts",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
4 changes: 2 additions & 2 deletions templates/typescript/simple-ts-router/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit ac5cdae

Please sign in to comment.