shopify-accelerate-app 1.0.17 → 1.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify-accelerate-app",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Shopify App development with full Typescript Support",
5
5
  "author": "Felix Tellmann",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "autoprefixer": "^10.4.19",
41
41
  "chalk": "4.1.2",
42
42
  "commander": "^12.0.0",
43
- "dotenv": "^16.4.5",
43
+ "dotenv-mono": "^1.3.14",
44
44
  "esbuild": "^0.24.0",
45
45
  "esbuild-plugin-d.ts": "^1.3.1",
46
46
  "immer": "^10.0.3",
@@ -1,20 +1,22 @@
1
1
  #!npx tsx
2
2
 
3
+ import { dotenvLoad } from "dotenv-mono";
3
4
  import fs from "fs";
4
5
  import path from "path";
5
- import { buildAppExtension } from "./src/scaffold-theme/build-app-extension";
6
- import { watchAppExtension } from "./src/watch-app-extension/watch-app-extension";
7
6
  import toml from "toml";
8
7
  import { ShopifyAppBlock } from "./@types/shopify";
9
8
  // import { require } from "./require";
10
9
  import { runEsbuild } from "./src/esbuild/esbuild";
10
+ import { buildAppExtension } from "./src/scaffold-theme/build-app-extension";
11
11
  import { runTailwindCSSWatcher } from "./src/tailwind/tailwind-watch";
12
12
  import { readFile, writeOnlyNew } from "./src/utils/fs";
13
13
  import { JSONParse } from "./src/utils/json";
14
+ import { watchAppExtension } from "./src/watch-app-extension/watch-app-extension";
14
15
 
15
16
  const { Command } = require("commander");
16
17
  const program = new Command();
17
- require("dotenv").config();
18
+
19
+ const dotenv = dotenvLoad(); // Dotenv instance
18
20
 
19
21
  export const root_dir = process.env.SHOPIFY_ACCELERATE_ROOT
20
22
  ? path.join(process.cwd(), process.env.SHOPIFY_ACCELERATE_ROOT)