@kernocal/validate-store 0.1.3 → 0.1.5
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/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "wxt";
|
|
2
2
|
import { defineWxtModule } from "wxt/modules";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
|
+
import { pathToFileURL } from "node:url";
|
|
4
5
|
import { access, mkdir, writeFile } from "node:fs/promises";
|
|
5
6
|
import defu from "defu";
|
|
6
7
|
import sharp from "sharp";
|
|
@@ -105,9 +106,9 @@ var src_default = defineWxtModule({
|
|
|
105
106
|
storeExportsDir: resolve(wxt.config.root, "store/exports")
|
|
106
107
|
});
|
|
107
108
|
if (!parsedOptions.enabled) return wxt.logger.warn("`[validate-store]` module disabled");
|
|
108
|
-
const { storeData } = await import(parsedOptions.storeDataSrc);
|
|
109
109
|
wxt.hook("build:manifestGenerated", async (_wxt, manifest) => {
|
|
110
110
|
if (_wxt.config.mode === "development") return;
|
|
111
|
+
const { storeData } = await import(pathToFileURL(parsedOptions.storeDataSrc).href);
|
|
111
112
|
const issues = [];
|
|
112
113
|
const { root } = _wxt.config;
|
|
113
114
|
const { screenshots, largePromoTile, smallPromoTile } = storeData.common;
|