Skip to content

Commit 0eb98a0

Browse files
authored
chore: add Taze configuration and improve Dockerfile and workflow permissions (#158)
2 parents 353871d + 29404a1 commit 0eb98a0

6 files changed

Lines changed: 132 additions & 14 deletions

File tree

.github/workflows/labelsync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
schedule:
55
- cron: '0 0 * * *'
66
workflow_dispatch:
7+
permissions:
8+
contents: read
9+
issues: write
710

811
jobs:
912
label_sync:

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ FROM base AS runner
4545
ENV NODE_ENV="production"
4646
ENV NODE_OPTIONS="--enable-source-maps --max_old_space_size=4096"
4747

48+
WORKDIR /usr/src/app
49+
4850
COPY --chown=node:node --from=builder /usr/src/app/dist dist
4951
COPY --chown=node:node --from=builder /usr/src/app/node_modules ./node_modules
5052
COPY --chown=node:node --from=builder /usr/src/app/src/.env src/.env

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
},
3636
"scripts": {
3737
"build": "tsdown",
38-
"dev": "tsdown --watch --onSuccess \"pnpm start\"",
39-
"watch": "tsdown --watch",
38+
"dev": "pnpm build --onSuccess \"pnpm start\"",
39+
"watch": "pnpm build --watch",
40+
"watch:start": "pnpm build --watch --onSuccess \"pnpm start\"",
4041
"prisma:generate": "pnpm prisma generate",
4142
"clean": "node scripts/build/clean.mjs",
4243
"start": "node --enable-source-maps dist/index.mjs",
@@ -113,6 +114,7 @@
113114
"prettier": "^3.7.2",
114115
"prisma": "^6.19.0",
115116
"prisma-json-types-generator": "^3.6.2",
117+
"taze": "^19.9.2",
116118
"tsdown": "^0.17.2",
117119
"typescript": "~5.7.2",
118120
"vitest": "^4.0.14"

pnpm-lock.yaml

Lines changed: 101 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

taze.config.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineConfig } from 'taze';
2+
3+
export default defineConfig({
4+
write: true,
5+
// run `npm install` or `yarn install` right after bumping
6+
install: true,
7+
update: true,
8+
recursive: true,
9+
includeLocked: true,
10+
interactive: true,
11+
packageMode: {
12+
typescript: 'ignore',
13+
'@prisma/client': 'ignore',
14+
'@prisma/adapter-pg': 'ignore',
15+
'prisma-json-types-generator': 'ignore',
16+
prisma: 'ignore'
17+
},
18+
depFields: {
19+
overrides: false
20+
}
21+
});

tsconfig.eslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"allowJs": true,
55
"checkJs": true
66
},
7-
"include": ["src", "tests", "scripts", "ormconfig.js", "vitest.config.ts", "tsdown.config.ts"]
7+
"include": ["src", "tests", "scripts", "ormconfig.js", "vitest.config.ts", "tsdown.config.ts", "taze.config.ts"]
88
}

0 commit comments

Comments
 (0)