Skip to content

Commit

Permalink
Met à jour l'origine du paquet jamstack-loader (betagouv) (#4742)
Browse files Browse the repository at this point in the history
* chore: met à jour l'origine du paquet jamstack-loader (betagouv)

* chore: met à jour l'origine du paquet jamstack-loader (betagouv)
  • Loading branch information
Shamzic authored Nov 26, 2024
1 parent 627861b commit e72706f
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 53 deletions.
2 changes: 1 addition & 1 deletion data/all.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { existsSync } from "node:fs"
import base from "./index.js"
import jamstackLoader from "jamstack-loader"
import jamstackLoader from "@betagouv/jamstack-loader"
import path from "path"
import { Jamstack } from "./types/jamstack.d.js"

Expand Down
2 changes: 1 addition & 1 deletion data/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "path"
import yaml from "js-yaml"
import fs from "fs"
import jamstackLoader from "jamstack-loader"
import jamstackLoader from "@betagouv/jamstack-loader"
const __dirname = new URL(".", import.meta.url).pathname
const jamstack = jamstackLoader.get(
path.join(__dirname, "../contribuer/public/admin/config.yml")
Expand Down
103 changes: 56 additions & 47 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"express-validator": "^6.13.0",
"haversine": "^1.1.1",
"iframe-resizer": "^4.3.2",
"jamstack-loader": "^0.0.9",
"@betagouv/jamstack-loader": "^1.0.0",
"js-yaml": "^4.1.0",
"jsonwebtoken": "^9.0.0",
"lodash.clonedeep": "^4.5.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/schema-validation-config.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from "@jest/globals"
import path from "path"
import jamstackLoader from "jamstack-loader"
import jamstackLoader from "@betagouv/jamstack-loader"

const jamstack = jamstackLoader.get(
path.join(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test-benefit-ids.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from "@jest/globals"
import Benefits from "@root/data/index.js"
import jamstackLoader from "jamstack-loader"
import jamstackLoader from "@betagouv/jamstack-loader"
import aidesVeloGenerator from "@root/data/benefits/aides-velo-generator.js"

const configFile = "contribuer/public/admin/config.yml"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test-institution-ids.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from "@jest/globals"
import Benefits from "@root/data/index.js"
import jamstackLoader from "jamstack-loader"
import jamstackLoader from "@betagouv/jamstack-loader"
const configFile = "contribuer/public/admin/config.yml"
import epci from "@etalab/decoupage-administratif/data/epci.json"

Expand Down

0 comments on commit e72706f

Please sign in to comment.