shopify-accelerate-app 1.0.14 → 1.0.16
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
package/require.ts
CHANGED
package/src/esbuild/esbuild.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import { delay } from "../../src/utils/delay";
|
|
4
3
|
import { require } from "../../require";
|
|
5
4
|
import { config, root_dir } from "../../shopify-accelerate-app";
|
|
6
5
|
import { isBlockTs } from "../scaffold-theme/parse-files";
|
|
@@ -75,7 +74,10 @@ const runBlockJsEsbuild = async (entryFile, folder) => {
|
|
|
75
74
|
const startTime = Date.now();
|
|
76
75
|
|
|
77
76
|
writeOnlyNew(
|
|
78
|
-
path.join(
|
|
77
|
+
path.join(
|
|
78
|
+
process.cwd(),
|
|
79
|
+
process.env.SHOPIFY_ACCELERATE_ROOT ? "tsconfig.theme-extension.json" : "tsconfig.json"
|
|
80
|
+
),
|
|
79
81
|
fs.readFileSync(path.join(config.package_root, "tsconfig.theme-extension.json"), {
|
|
80
82
|
encoding: "utf-8",
|
|
81
83
|
})
|
|
@@ -108,7 +110,10 @@ const runBlockJsEsbuild = async (entryFile, folder) => {
|
|
|
108
110
|
treeShaking: true,
|
|
109
111
|
loader: { ".js": "jsx" },
|
|
110
112
|
minify: true,
|
|
111
|
-
tsconfig: path.join(
|
|
113
|
+
tsconfig: path.join(
|
|
114
|
+
process.cwd(),
|
|
115
|
+
process.env.SHOPIFY_ACCELERATE_ROOT ? "tsconfig.theme-extension.json" : "tsconfig.json"
|
|
116
|
+
),
|
|
112
117
|
format: "iife",
|
|
113
118
|
// platform: "browser",
|
|
114
119
|
legalComments: "none",
|
|
@@ -9,6 +9,7 @@ const watch = require("node-watch");
|
|
|
9
9
|
|
|
10
10
|
export const runTailwindCSSWatcher = () => {
|
|
11
11
|
const { package_root } = config;
|
|
12
|
+
|
|
12
13
|
const hasConfig = fs.existsSync(path.join(root_dir, "tailwind.config.js"));
|
|
13
14
|
const hasPostCss = fs.existsSync(path.join(root_dir, "postcss.config.js"));
|
|
14
15
|
const inputFile = fs.existsSync(path.join(root_dir, `assets`, `_tailwind.css`));
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"types/*": ["./@types/*"],
|
|
21
21
|
"/*": ["./*"],
|
|
22
22
|
"react": ["./node_modules/preact/compat/"],
|
|
23
|
-
"react-
|
|
23
|
+
"react/jsx-runtime": ["./node_modules/preact/jsx-runtime"],
|
|
24
|
+
"react-dom": ["./node_modules/preact/compat/"],
|
|
25
|
+
"react-dom/*": ["./node_modules/preact/compat/*"]
|
|
26
|
+
|
|
24
27
|
},
|
|
25
28
|
"strict": false,
|
|
26
29
|
"strictNullChecks": false,
|