Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Oct 7, 2024
1 parent cfe3164 commit 3e5fcaa
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion action/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ COPY src /app/src
# Install pnpm and dependencies
RUN npm install -g pnpm ts-node && pnpm install

# Run the Node.js application
# Run the Node.js / TypeScript application
ENTRYPOINT ["ts-node", "/app/src/index.ts"]
4 changes: 3 additions & 1 deletion action/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"type": "module",
"dependencies": {
"octokit": "^4.0.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^22.7.4"
}
}
16 changes: 16 additions & 0 deletions action/pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions action/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { execSync } from 'child_process';

import loadConfig from './instances/config.js';
import loadConfig from './instances/config';
// Uses GitHub's official Octokit
import loadOctokit from './instances/octokit.js';
import doStuff from './do-stuff.js';
import loadOctokit from './instances/octokit';
import doStuff from './do-stuff';

// Run

Expand Down
2 changes: 1 addition & 1 deletion action/src/instances/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import loadEnv from './_env.js';
import loadEnv from './_env';

export default async function loadConfig() {
const env = await loadEnv();
Expand Down
2 changes: 1 addition & 1 deletion action/src/instances/octokit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import loadEnv from './_env.js';
import loadEnv from './_env';
import { Octokit } from 'octokit';

export default async function loadOctokit() {
Expand Down
4 changes: 2 additions & 2 deletions action/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"moduleResolution": "NodeNext",
"module": "NodeNext",
"moduleResolution": "Node",
"module": "ESNext",
"target": "ESNext",
"rootDir": "src",
"outDir": "build",
Expand Down

0 comments on commit 3e5fcaa

Please sign in to comment.