Skip to content

Commit fda73df

Browse files
committed
add database package to the docker image
1 parent 6f0455e commit fda73df

File tree

6 files changed

+6
-152
lines changed

6 files changed

+6
-152
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ RUN --mount=type=bind,source=package.json,target=package.json \
1212
--mount=type=bind,source=packages/annuaire_entreprises/package.json,target=packages/annuaire_entreprises/package.json \
1313
--mount=type=bind,source=packages/core/package.json,target=packages/core/package.json \
1414
--mount=type=bind,source=packages/crisp/package.json,target=packages/crisp/package.json \
15+
--mount=type=bind,source=packages/database/package.json,target=packages/database/package.json \
1516
--mount=type=bind,source=packages/debounce/package.json,target=packages/debounce/package.json \
1617
--mount=type=bind,source=packages/devtools/typescript/package.json,target=packages/devtools/typescript/package.json \
1718
--mount=type=bind,source=packages/email/package.json,target=packages/email/package.json \
1819
--mount=type=bind,source=packages/entreprise/package.json,target=packages/entreprise/package.json \
19-
--mount=type=bind,source=packages/insee/package.json,target=packages/insee/package.json \
2020
--mount=type=bind,source=packages/identite/package.json,target=packages/identite/package.json \
21+
--mount=type=bind,source=packages/insee/package.json,target=packages/insee/package.json \
2122
--mount=type=bind,source=packages/testing/package.json,target=packages/testing/package.json \
2223
--mount=type=cache,sharing=locked,target=/root/.npm \
2324
corepack npm ci --omit=dev
@@ -29,12 +30,13 @@ RUN --mount=type=bind,source=package.json,target=package.json \
2930
--mount=type=bind,source=packages/annuaire_entreprises/package.json,target=packages/annuaire_entreprises/package.json \
3031
--mount=type=bind,source=packages/core/package.json,target=packages/core/package.json \
3132
--mount=type=bind,source=packages/crisp/package.json,target=packages/crisp/package.json \
33+
--mount=type=bind,source=packages/database/package.json,target=packages/database/package.json \
3234
--mount=type=bind,source=packages/debounce/package.json,target=packages/debounce/package.json \
3335
--mount=type=bind,source=packages/devtools/typescript/package.json,target=packages/devtools/typescript/package.json \
3436
--mount=type=bind,source=packages/email/package.json,target=packages/email/package.json \
3537
--mount=type=bind,source=packages/entreprise/package.json,target=packages/entreprise/package.json \
36-
--mount=type=bind,source=packages/insee/package.json,target=packages/insee/package.json \
3738
--mount=type=bind,source=packages/identite/package.json,target=packages/identite/package.json \
39+
--mount=type=bind,source=packages/insee/package.json,target=packages/insee/package.json \
3840
--mount=type=bind,source=packages/testing/package.json,target=packages/testing/package.json \
3941
--mount=type=cache,sharing=locked,target=/root/.npm \
4042
corepack npm ci

packages/database/src/migrate.test.ts

Lines changed: 0 additions & 71 deletions
This file was deleted.

packages/database/src/migrate.test.ts.snapshot

Lines changed: 0 additions & 63 deletions
This file was deleted.

packages/database/src/migrate.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/database/src/pg/migrator/migrate.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ describe(
2424
await migrate(pg.client);
2525

2626
await pg.client.query(`
27-
DROP TABLE IF EXISTS "pgmigrations";
27+
DROP TABLE IF EXISTS public.pgmigrations;
2828
`);
29+
2930
// Verify migration completed successfully
3031
const result = await pg.client.query(`
3132
SELECT table_name

packages/database/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"declaration": true,
44
"declarationMap": true,
55
"outDir": "./dist",
6-
"rootDir": "src",
76
"types": ["node"]
87
},
98
"extends": "@proconnect-gouv/proconnect.devtools.typescript/base/tsconfig.json",

0 commit comments

Comments
 (0)