Skip to content

Commit 24fdb47

Browse files
authored
Fix build issue (#277)
* fixed copy-files & exclude scripts from compiling for image * move creds to a folder for gitignore * updated copfiles to copy correctly
1 parent 5f43215 commit 24fdb47

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ worker/distWorker/
140140
post_data.json
141141
benchmark.local.sh
142142

143-
# GCP Service Account JSON
144-
thrdweb-biyvmatstwcbrb08y692g-41baca7a34a1.json
145-
thrdweb-biyvmatstwcbrb08y692g-7762eca4411b.json
143+
credentials
146144

147145
# SSL Local Certs folder
148146
https

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"start:worker": "node --experimental-specifier-resolution=node ./dist/worker/index.js",
2323
"start:docker": "docker compose build && docker compose --env-file ./.env up --remove-orphans",
2424
"docker-build-run": "docker compose build --no-cache && docker compose --env-file ./.env up --remove-orphans",
25-
"copy-files": "copyfiles ./src/prisma/schema.prisma ./dist/ && copyfiles ./src/prisma/migrations/**/*.sql ./dist/",
25+
"copy-files": "copyfiles -u 2 ./src/prisma/* ./dist/prisma/ && copyfiles -u 3 ./src/prisma/migrations/**/*.sql ./dist/prisma/migrations/",
2626
"lint": "eslint 'src/**/*.ts'",
2727
"lint:fix": "eslint --fix 'src/**/*.ts'",
2828
"test:load": "npx tsx ./test/load/index.ts",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"src/**/*.js",
2626
"src/**/*.d.ts"
2727
],
28-
"exclude": ["node_modules"]
28+
"exclude": ["node_modules", "src/scripts"]
2929
}

0 commit comments

Comments
 (0)