Skip to content

Commit

Permalink
som config
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Nov 30, 2023
1 parent 0b355cc commit 14cfea8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
7 changes: 6 additions & 1 deletion fern/api/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ groups:
version: 0.7.2
output:
location: local-file-system
path: ../../generated/typescript
path: ../../packages/typescript
config:
namespaceExport: owlebot
timeoutInSeconds: 120
noSerdeLayer: true
outputEsm: true
4 changes: 2 additions & 2 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "owlean",
"organization": "owlebot",
"version": "0.14.3"
}
}
5 changes: 5 additions & 0 deletions loader.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createEsmHooks, register } from "ts-node";

export const { resolve, load, getFormat, transformSource } = createEsmHooks(
register({ transpileOnly: true, swc: false, esm: true })
);
5 changes: 0 additions & 5 deletions nodemon.json

This file was deleted.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"@types/swagger-ui-express": "^4.1.3",
"concurrently": "^8.2.1",
"eslint": "^8.54.0",
"nodemon": "^3.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
Expand All @@ -46,10 +45,10 @@
"docker:build": "docker-build",
"docker:push": "docker-push",
"secret:pull": "secret-pull",
"start:debug": "launch src/index.js --inspect",
"start:prod": "node src/index.js",
"start:watch": "NODE-OPTIONS='--watch' ts-node --esm --swc build/src/index.js",
"start": "launch build/src/index.js",
"start:debug": "node --loader ./loader.mjs --watch ./src/index.ts --inspect",
"start:prod": "node build/src/index.js",
"start:watch": "node --loader ./loader.mjs --watch ./src/index.ts",
"start": "ts-node --esm ./src/index.ts",
"test": "yarn run lint"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ server.init(process.env.OPEN_API_PORT);
server.addLogger(Logger);
// server.addHealthEndpoint();

console.log("a")
// Cache
const cache = new NodeCache({ stdTTL: 10800 }); // Cache for 3 hours

Expand Down

0 comments on commit 14cfea8

Please sign in to comment.