shopify-accelerate-app 1.0.1 → 1.0.3

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.1",
3
+ "version": "1.0.3",
4
4
  "description": "Shopify App development with full Typescript Support",
5
5
  "author": "Felix Tellmann",
6
6
  "license": "MIT",
package/require.ts ADDED
@@ -0,0 +1,4 @@
1
+ import path from "path";
2
+
3
+ import { createRequire } from "module";
4
+ export const require = createRequire(import.meta.url);
@@ -1,5 +1,6 @@
1
1
  #!npx tsx
2
2
 
3
+ import { require } from "./require";
3
4
  import fs from "fs";
4
5
  import path from "path";
5
6
  import toml from "toml";
@@ -256,10 +257,8 @@ export const config: GlobalsState = {
256
257
  mode: shopify_toml?.environments?.["development"]?.mode ?? "production",
257
258
  };
258
259
 
259
- program
260
- .name("shopify-accelerate-app")
261
- .description("CLI for Accelerated Shopify Theme development")
262
- .version(require(path.join("./", "package.json")).version);
260
+ program.name("shopify-accelerate-app").description("CLI for Accelerated Shopify Theme development");
261
+ /*.version(require(path.join("./", "package.json")).version);*/
263
262
 
264
263
  program
265
264
  .command("init")
@@ -1,3 +1,4 @@
1
+ import { require } from "../../require";
1
2
  import { dtsPlugin } from "esbuild-plugin-d.ts";
2
3
  import path from "path";
3
4
  import { config, root_dir } from "../../shopify-accelerate-app";
@@ -1,8 +1,10 @@
1
+ import { require } from "../../require";
1
2
  import child_process from "child_process";
2
3
  import fs from "fs";
3
4
  import path from "path";
4
5
  import { config, root_dir } from "../../shopify-accelerate-app";
5
6
  import { deleteFile } from "../utils/fs";
7
+
6
8
  const watch = require("node-watch");
7
9
 
8
10
  export const runTailwindCSSWatcher = () => {
@@ -1,4 +1,5 @@
1
1
  // eslint-disable-next-line node/no-unpublished-require
2
+ import { require } from "../../require";
2
3
  const plugin = require("tailwindcss/plugin");
3
4
  require("dotenv").config();
4
5