mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-11 19:58:15 +02:00
Upgrade @metalsmith/layouts
to version 3.0.0
This is a major version bump, and the changelog at https://github.com/metalsmith/layouts/releases/tag/v3.0.0 indicates a breaking change that impacts us, namely that we need to explicitly define the pattern and transformer that we wish to use.
This commit is contained in:
parent
ef7e0ddae4
commit
cfe6cc6a7e
3 changed files with 8 additions and 27 deletions
|
@ -2266,6 +2266,8 @@ gulp.task("metalsmith", async function () {
|
|||
.use(
|
||||
layouts({
|
||||
directory: "docs/templates",
|
||||
pattern: "**",
|
||||
transform: "nunjucks",
|
||||
})
|
||||
)
|
||||
.use(relative())
|
||||
|
|
31
package-lock.json
generated
31
package-lock.json
generated
|
@ -12,7 +12,7 @@
|
|||
"@babel/runtime": "^7.26.10",
|
||||
"@fluent/bundle": "^0.18.0",
|
||||
"@fluent/dom": "^0.10.0",
|
||||
"@metalsmith/layouts": "^2.7.0",
|
||||
"@metalsmith/layouts": "^3.0.0",
|
||||
"@metalsmith/markdown": "^1.10.0",
|
||||
"@napi-rs/canvas": "^0.1.68",
|
||||
"@types/node": "^22.13.10",
|
||||
|
@ -2195,18 +2195,17 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@metalsmith/layouts": {
|
||||
"version": "2.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@metalsmith/layouts/-/layouts-2.7.0.tgz",
|
||||
"integrity": "sha512-VG5ldPSsTxUvHqFQo0u5mjWtS2IUUOqYKHvWnEHKol1UhaXhhYBYSnG0D8kjk+XzGw+mWxNfv/JoAhg94filXA==",
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@metalsmith/layouts/-/layouts-3.0.0.tgz",
|
||||
"integrity": "sha512-5rOquSdfdQ9Nx++4gEIOZ8BDV0NuudthgV+itIJK/wgGRrFsmq2+3xQrbsX94oY73+KPJA5h638IU7Qp1nmTpQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"inputformat-to-jstransformer": "^1.4.0",
|
||||
"is-utf8": "^0.2.1",
|
||||
"jstransformer": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
"node": ">=14.18.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"metalsmith": "^2.4.1"
|
||||
|
@ -7130,19 +7129,6 @@
|
|||
"integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/inputformat-to-jstransformer": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/inputformat-to-jstransformer/-/inputformat-to-jstransformer-1.4.0.tgz",
|
||||
"integrity": "sha512-Ub+Wjb0mjaND4IS/GDvQ+TEyd1i9U4OdrF58mBY7QTYu8CK5K34DPV7mrvo/WQBJLj7UJWQc7QAmFb7CbQ5lLw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"require-one": "^1.0.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/internal-slot": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz",
|
||||
|
@ -10313,13 +10299,6 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/require-one": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/require-one/-/require-one-1.0.3.tgz",
|
||||
"integrity": "sha512-5nXixwgbAZfQ65g7fXv5fDXYRiKByOT1NT3EffS+0W/1MoF+Lkbsly3MXIlPIAgEtspX5fWAbXnp6d4BNMx+xQ==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/requizzle": {
|
||||
"version": "0.2.3",
|
||||
"resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"@babel/runtime": "^7.26.10",
|
||||
"@fluent/bundle": "^0.18.0",
|
||||
"@fluent/dom": "^0.10.0",
|
||||
"@metalsmith/layouts": "^2.7.0",
|
||||
"@metalsmith/layouts": "^3.0.0",
|
||||
"@metalsmith/markdown": "^1.10.0",
|
||||
"@napi-rs/canvas": "^0.1.68",
|
||||
"@types/node": "^22.13.10",
|
||||
|
|
Loading…
Add table
Reference in a new issue