Skip to content

Commit

Permalink
pkg: use publicodes beta.77 + @publicodes/tools
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Feb 2, 2024
1 parent 80e6d85 commit bb2109a
Show file tree
Hide file tree
Showing 3 changed files with 730 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { writeFileSync } from "fs"
import { getModelFromSource } from "@incubateur-ademe/publicodes-tools/compilation"
import { disabledLogger } from "@incubateur-ademe/publicodes-tools"
import { getModelFromSource } from "@publicodes/tools/compilation"
import { disabledLogger } from "@publicodes/tools"
import Engine from "publicodes"

const srcFiles = "rules/**/*.publicodes"
Expand All @@ -24,7 +24,7 @@ writeFileSync(
import rules from "./${destPath}" assert { type: "json" };
export default rules;
`
`,
)
console.log(`✅ index.js generated`)

Expand All @@ -34,7 +34,7 @@ let indexDTypes = Object.keys(model).reduce(
import { Rule } from "publicodes";
export type DottedName =
`
`,
)

indexDTypes += `
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"devDependencies": {
"@incubateur-ademe/nosgestesclimat": "^1.5.0",
"@incubateur-ademe/publicodes-commun": "^0.1.2",
"@incubateur-ademe/publicodes-tools": "^0.4.2",
"publicodes": "^1.0.0-beta.77"
"@publicodes/tools": "^0.4.6",
"publicodes": "1.0.0-beta.77"
},
"authors": [
"Clément Auger <[email protected]>",
Expand Down
Loading

0 comments on commit bb2109a

Please sign in to comment.