Spaces:
Runtime error
Runtime error
Bansari Akhani
commited on
Commit
·
86272b5
1
Parent(s):
0000bf5
remove pnp
Browse files- .gitignore +4 -12
- .vscode/extensions.json +7 -0
- .vscode/settings.json +10 -0
- .yarnrc.yml +1 -1
- package.json +2 -2
- src/app.ts +1 -1
- tsconfig.json +16 -7
.gitignore
CHANGED
@@ -1,13 +1,5 @@
|
|
1 |
.yarn/*
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
!.yarn/versions
|
7 |
-
|
8 |
-
# Swap the comments on the following lines if you wish to use zero-installs
|
9 |
-
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
|
10 |
-
# Documentation here: https://yarnpkg.com/features/caching#zero-installs
|
11 |
-
|
12 |
-
#!.yarn/cache
|
13 |
-
.pnp.*
|
|
|
1 |
.yarn/*
|
2 |
+
node_modules
|
3 |
+
.env
|
4 |
+
dist
|
5 |
+
build/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.vscode/extensions.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"recommendations": [
|
3 |
+
"arcanis.vscode-zipfs",
|
4 |
+
"dbaeumer.vscode-eslint",
|
5 |
+
"esbenp.prettier-vscode"
|
6 |
+
]
|
7 |
+
}
|
.vscode/settings.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"search.exclude": {
|
3 |
+
"**/.yarn": true,
|
4 |
+
"**/.pnp.*": true
|
5 |
+
},
|
6 |
+
"eslint.nodePath": ".yarn/sdks",
|
7 |
+
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
|
8 |
+
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
9 |
+
"typescript.enablePromptUseWorkspaceTsdk": true
|
10 |
+
}
|
.yarnrc.yml
CHANGED
@@ -1 +1 @@
|
|
1 |
-
nodeLinker:
|
|
|
1 |
+
nodeLinker: node-modules
|
package.json
CHANGED
@@ -4,8 +4,7 @@
|
|
4 |
"packageManager": "yarn@4.2.2",
|
5 |
"dependencies": {
|
6 |
"dotenv": "^16.4.5",
|
7 |
-
"express": "^4.19.2"
|
8 |
-
"ts-node": "^10.9.2"
|
9 |
},
|
10 |
"devDependencies": {
|
11 |
"@types/dotenv": "^8.2.0",
|
@@ -18,6 +17,7 @@
|
|
18 |
"eslint-plugin-prettier": "^5.1.3",
|
19 |
"nodemon": "^3.1.4",
|
20 |
"prettier": "^3.3.2",
|
|
|
21 |
"typescript": "^5.5.3"
|
22 |
},
|
23 |
"scripts": {
|
|
|
4 |
"packageManager": "yarn@4.2.2",
|
5 |
"dependencies": {
|
6 |
"dotenv": "^16.4.5",
|
7 |
+
"express": "^4.19.2"
|
|
|
8 |
},
|
9 |
"devDependencies": {
|
10 |
"@types/dotenv": "^8.2.0",
|
|
|
17 |
"eslint-plugin-prettier": "^5.1.3",
|
18 |
"nodemon": "^3.1.4",
|
19 |
"prettier": "^3.3.2",
|
20 |
+
"ts-node": "^10.9.2",
|
21 |
"typescript": "^5.5.3"
|
22 |
},
|
23 |
"scripts": {
|
src/app.ts
CHANGED
@@ -4,7 +4,7 @@ const app = express();
|
|
4 |
const port = 3000;
|
5 |
|
6 |
app.get('/', (req, res) => {
|
7 |
-
res.send('
|
8 |
});
|
9 |
|
10 |
app.listen(port, () => {
|
|
|
4 |
const port = 3000;
|
5 |
|
6 |
app.get('/', (req, res) => {
|
7 |
+
res.send('Service is healthy!');
|
8 |
});
|
9 |
|
10 |
app.listen(port, () => {
|
tsconfig.json
CHANGED
@@ -1,13 +1,22 @@
|
|
1 |
{
|
2 |
"compilerOptions": {
|
3 |
-
"target": "
|
4 |
-
"
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
"esModuleInterop": true,
|
7 |
-
"skipLibCheck": true,
|
8 |
"forceConsistentCasingInFileNames": true,
|
9 |
-
"
|
|
|
10 |
},
|
11 |
-
"include": ["
|
12 |
-
"exclude": ["
|
13 |
}
|
|
|
1 |
{
|
2 |
"compilerOptions": {
|
3 |
+
"target": "ES2016",
|
4 |
+
"lib": [
|
5 |
+
"ES5",
|
6 |
+
"ES6",
|
7 |
+
"DOM"
|
8 |
+
],
|
9 |
+
"experimentalDecorators": true,
|
10 |
+
"emitDecoratorMetadata": true,
|
11 |
+
"module": "CommonJS",
|
12 |
+
"rootDir": "./src",
|
13 |
+
"moduleResolution": "Node",
|
14 |
+
"outDir": "./build",
|
15 |
"esModuleInterop": true,
|
|
|
16 |
"forceConsistentCasingInFileNames": true,
|
17 |
+
"skipLibCheck": true,
|
18 |
+
"strict": true
|
19 |
},
|
20 |
+
"include": ["src/**/*.ts"],
|
21 |
+
"exclude": [".yarn"]
|
22 |
}
|