odoro 0.1.1 → 0.1.2

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/cli.js CHANGED
@@ -130,7 +130,7 @@ function rootFrom(flags, positional) {
130
130
  async function run(argv) {
131
131
  const { command, positional, flags } = parseArgs(argv);
132
132
  if (flags["version"] === true) {
133
- const manifest = await import('./package-536LNDGJ.js');
133
+ const manifest = await import('./package-E26GKHFT.js');
134
134
  console.log(manifest.default.version);
135
135
  return 0;
136
136
  }
@@ -141,7 +141,7 @@ async function run(argv) {
141
141
  switch (command) {
142
142
  case "create":
143
143
  case "new": {
144
- const { createCommand } = await import('./create-745DI5DL.js');
144
+ const { createCommand } = await import('./create-Z3TSGBE6.js');
145
145
  const options = {};
146
146
  if (positional[0] !== void 0) options.name = positional[0];
147
147
  if (typeof flags["template"] === "string") options.template = flags["template"];
@@ -57,8 +57,8 @@ function availableTemplates(root = templatesRoot()) {
57
57
 
58
58
  // src/scaffold/scaffold.ts
59
59
  function cliVersion() {
60
- const manifeste = new URL("../../package.json", import.meta.url);
61
60
  try {
61
+ const manifeste = join(dirname(templatesRoot()), "package.json");
62
62
  const { version } = JSON.parse(readFileSync(manifeste, "utf8"));
63
63
  return version;
64
64
  } catch {
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "odoro",
5
- version: "0.1.1",
5
+ version: "0.1.2",
6
6
  type: "module",
7
7
  license: "UNLICENSED",
8
8
  author: "BouBouw",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odoro",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "author": "BouBouw",