Skip to content

Commit

Permalink
fix: json import assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemog committed Oct 18, 2023
1 parent 7899952 commit b91da27
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ console.log(`✅ ${destPath} generated`)
writeFileSync(
'index.js',
`
import rules from "./${destPath}";
import rules from "./${destPath}" assert { type: "json" };
export default rules;
`
Expand Down
28 changes: 28 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"@incubateur-ademe/publicodes-commun@^0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@incubateur-ademe/publicodes-commun/-/publicodes-commun-0.1.2.tgz#a3168568dd7ac4090ec7f0af7ff06cdde4a28f49"
integrity sha512-1Kq606UIg4zxmduJuO3lQt0BSH9/klHJEz8c2DBuaVJzT78QQ4rW5T7I2NZ9wiXgVEF+4n0u0005xn9sm1u6+w==
dependencies:
publicodes "^1.0.0-beta.71"

"@incubateur-ademe/publicodes-tools@^0.4.2":
version "0.4.2"
resolved "https://registry.yarnpkg.com/@incubateur-ademe/publicodes-tools/-/publicodes-tools-0.4.2.tgz#e614855d95d7c1f1ef0cdc8de8162c11a8ca6c10"
integrity sha512-i/SYYxO1I/enMTIA0tLSm4FM0P2AXcfW5rI7xfkBf1jnTePXlJpe7g3baxI8wEQQRosqr040Sj7Sb79S8kWWfg==
dependencies:
"@types/node" "^18.11.18"
publicodes "^1.0.0-beta.71"

"@types/node@^18.11.18":
version "18.18.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.18.5.tgz#afc0fd975df946d6e1add5bbf98264225b212244"
integrity sha512-4slmbtwV59ZxitY4ixUZdy1uRLf9eSIvBWPQxNjhHYWEtn0FryfKpyS2cvADYXTayWdKEIsJengncrVvkI4I6A==

publicodes@^1.0.0-beta.71, publicodes@^1.0.0-beta.74:
version "1.0.0-beta.77"
resolved "https://registry.yarnpkg.com/publicodes/-/publicodes-1.0.0-beta.77.tgz#45e3c4d2a46bfadcc932e1405ea037e659c28134"
integrity sha512-F8U3WGUWMo3/rxhWYS1gWIiG20g1Yy/+PpXdHM99d6ZHKWnnyh/4txVEuyVE75glgDs+mTjwZPnmoKWsTMXluA==

0 comments on commit b91da27

Please sign in to comment.