@mastrojs/create-mastro 0.0.4 → 0.0.6

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.
Files changed (2) hide show
  1. package/index.js +2 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -19,7 +19,8 @@ import { Readable } from "node:stream";
19
19
 
20
20
  const runtime = typeof Deno === "object"
21
21
  ? "deno"
22
- : (process.versions.bun ? "bun" : "node");
22
+ // @ts-ignore
23
+ : (typeof Bun === "object" ? "bun" : "node");
23
24
 
24
25
  /**
25
26
  * @param {string} path
@@ -29,9 +30,6 @@ const runtime = typeof Deno === "object"
29
30
  const writeFile = (path, data) => {
30
31
  if (typeof Deno === "object") {
31
32
  return Deno.writeFile(path, data);
32
- } else if (runtime === "bun") {
33
- // @ts-ignore
34
- return Bun.write(path, data);
35
33
  } else {
36
34
  return new Promise((resolve, reject) =>
37
35
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastrojs/create-mastro",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "npm-publish": "deno check && npm publish --access public"