unicode-input-toolconverter 0.2.2 → 0.2.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,7 +1,7 @@
1
1
  {
2
2
  "name": "unicode-input-toolconverter",
3
3
  "description": "Add-on for selecting Unicode characters by variety of means and converting between various representations",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "exports": {
6
6
  "browser": "./browser_action/index.js"
7
7
  },
@@ -23,6 +23,7 @@
23
23
  "last 2 chrome versions"
24
24
  ],
25
25
  "scripts": {
26
+ "prepublishOnly": "pnpm tsc && pnpm rollup",
26
27
  "tsc": "tsc",
27
28
  "cypress:run": "cypress run && npm run report",
28
29
  "cypress:open": "cypress open",
@@ -27,7 +27,9 @@ const vendorPathBySpecifier = new Map(
27
27
  );
28
28
 
29
29
  const swResourcesPath = 'browser_action/service-worker/sw-resources.json';
30
- const resources = JSON.parse(await fs.readFile(swResourcesPath, 'utf8'));
30
+ const resources = /** @type {string[]} */ (
31
+ JSON.parse(await fs.readFile(swResourcesPath, 'utf8'))
32
+ );
31
33
 
32
34
  const nodeModulesPattern = /^\/node_modules\/((?:@[^\/]+\/)?[^\/]+)\//v;
33
35