nitropack-nightly 2.12.3-20250717-065208.e11a7435 → 2.12.3-20250717-181931.7a83e130

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.
@@ -1619,8 +1619,16 @@ async function buildProduction(nitro, rollupConfig) {
1619
1619
  nitro: version
1620
1620
  },
1621
1621
  commands: {
1622
- preview: resolveTmplPath(nitro.options.commands.preview, nitro),
1623
- deploy: resolveTmplPath(nitro.options.commands.deploy, nitro)
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 (buildInfo.commands?.preview) {
1653
+ if (nitro.options.commands?.preview) {
1646
1654
  nitro.logger.success(
1647
- `You can preview this build using \`${buildInfo.commands?.preview}\``
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 (buildInfo.commands?.deploy) {
1662
+ if (nitro.options.commands?.deploy) {
1651
1663
  nitro.logger.success(
1652
- `You can deploy this build using \`${buildInfo.commands?.deploy}\``
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(nitro.options.rootDir, val);
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)}`
@@ -1,4 +1,4 @@
1
- const version = "2.12.3-20250717-065208.e11a7435";
1
+ const version = "2.12.3-20250717-181931.7a83e130";
2
2
 
3
3
  const compatibilityChanges = [
4
4
  {
@@ -282,5 +282,5 @@ async function generateWorkerName(nitro) {
282
282
  );
283
283
  const pkgName = pkgJSON?.name;
284
284
  const subpath = relative(nitro.options.workspaceDir, nitro.options.rootDir);
285
- return `${gitRepo || pkgName}/${subpath}`.replace(/[^a-zA-Z0-9-]/g, "-").replace(/-$/, "");
285
+ return `${gitRepo || pkgName}/${subpath}`.toLowerCase().replace(/[^a-zA-Z0-9-]/g, "-").replace(/-$/, "");
286
286
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.12.3-20250717-065208.e11a7435",
3
+ "version": "2.12.3-20250717-181931.7a83e130",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",