Skip to content

Commit

Permalink
Merge pull request #124 from TogetherCrew/122-capture-webhook-messages
Browse files Browse the repository at this point in the history
[FEATURE]: add javascript usage for scripts
  • Loading branch information
cyri113 authored Sep 20, 2023
2 parents 7c29872 + 3354739 commit e0bb7e6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ src/config/*.env
*.env

# compiled output
/lib
/dist
/node_modules

#migration
migrate.json
.migrate
# Logs
logs
*.log
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"lint": "eslint **/*.ts",
"lint-fix": "eslint --fix **/*.ts",
"format": "prettier --write src/**/*.ts",
"migrate:create": "migrate create --template-file ./src/migrations/utils/template.ts --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\"",
"migrate:up": "migrate --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\" up",
"migrate:down": "migrate --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\" down"
"migrate:create": "migrate create --template-file ./src/migrations/utils/template.ts --migrations-dir=\"./src/migrations/db\"",
"migrate:up": "migrate --migrations-dir=\"./dist/migrations/db\" up",
"migrate:down": "migrate --migrations-dir=\"./dist/migrations/db\" down"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -67,4 +67,4 @@
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ export const up = async () => {

export const down = async () => {
// TODO: Implement rollback logic if needed
};
};


6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "ES2017",
"sourceMap": true,
"outDir": "./lib",
"sourceMap": false,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"strict": true,
Expand All @@ -26,7 +26,7 @@
},
"exclude": [
"./coverage",
"./lib",
"./dist",
"__tests__",
"jest.config.js"
],
Expand Down

0 comments on commit e0bb7e6

Please sign in to comment.