nitropack-nightly 2.12.3-20250717-065208.e11a7435 → 2.12.3-20250717-181903.086d21d8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.mjs +24 -8
- package/dist/meta/index.mjs +1 -1
- package/package.json +1 -1
package/dist/core/index.mjs
CHANGED
|
@@ -1619,8 +1619,16 @@ async function buildProduction(nitro, rollupConfig) {
|
|
|
1619
1619
|
nitro: version
|
|
1620
1620
|
},
|
|
1621
1621
|
commands: {
|
|
1622
|
-
preview: resolveTmplPath(
|
|
1623
|
-
|
|
1622
|
+
preview: resolveTmplPath(
|
|
1623
|
+
nitro.options.commands.preview,
|
|
1624
|
+
nitro,
|
|
1625
|
+
nitro.options.output.dir
|
|
1626
|
+
),
|
|
1627
|
+
deploy: resolveTmplPath(
|
|
1628
|
+
nitro.options.commands.deploy,
|
|
1629
|
+
nitro,
|
|
1630
|
+
nitro.options.output.dir
|
|
1631
|
+
)
|
|
1624
1632
|
},
|
|
1625
1633
|
config: {
|
|
1626
1634
|
...Object.fromEntries(
|
|
@@ -1642,14 +1650,22 @@ async function buildProduction(nitro, rollupConfig) {
|
|
|
1642
1650
|
}
|
|
1643
1651
|
}
|
|
1644
1652
|
await nitro.hooks.callHook("compiled", nitro);
|
|
1645
|
-
if (
|
|
1653
|
+
if (nitro.options.commands?.preview) {
|
|
1646
1654
|
nitro.logger.success(
|
|
1647
|
-
`You can preview this build using \`${
|
|
1655
|
+
`You can preview this build using \`${resolveTmplPath(
|
|
1656
|
+
nitro.options.commands.preview,
|
|
1657
|
+
nitro,
|
|
1658
|
+
process.cwd()
|
|
1659
|
+
)}\``
|
|
1648
1660
|
);
|
|
1649
1661
|
}
|
|
1650
|
-
if (
|
|
1662
|
+
if (nitro.options.commands?.deploy) {
|
|
1651
1663
|
nitro.logger.success(
|
|
1652
|
-
`You can deploy this build using \`${
|
|
1664
|
+
`You can deploy this build using \`${resolveTmplPath(
|
|
1665
|
+
nitro.options.commands.deploy,
|
|
1666
|
+
nitro,
|
|
1667
|
+
process.cwd()
|
|
1668
|
+
)}\``
|
|
1653
1669
|
);
|
|
1654
1670
|
}
|
|
1655
1671
|
}
|
|
@@ -1674,7 +1690,7 @@ async function _snapshot(nitro) {
|
|
|
1674
1690
|
})
|
|
1675
1691
|
);
|
|
1676
1692
|
}
|
|
1677
|
-
function resolveTmplPath(input, nitro) {
|
|
1693
|
+
function resolveTmplPath(input, nitro, relativeTo) {
|
|
1678
1694
|
if (!input || !input.includes("{{")) {
|
|
1679
1695
|
return input;
|
|
1680
1696
|
}
|
|
@@ -1684,7 +1700,7 @@ function resolveTmplPath(input, nitro) {
|
|
|
1684
1700
|
match
|
|
1685
1701
|
);
|
|
1686
1702
|
if (val) {
|
|
1687
|
-
val = relative(
|
|
1703
|
+
val = relative(relativeTo, val) || ".";
|
|
1688
1704
|
} else {
|
|
1689
1705
|
nitro.logger.warn(
|
|
1690
1706
|
`cannot resolve template param '${match}' in ${input.slice(0, 20)}`
|
package/dist/meta/index.mjs
CHANGED
package/package.json
CHANGED