@pronto-tools-and-more/pronto 3.3.8 → 3.3.9

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": "@pronto-tools-and-more/pronto",
3
- "version": "3.3.8",
3
+ "version": "3.3.9",
4
4
  "description": "",
5
5
  "main": "src/main.js",
6
6
  "type": "module",
@@ -13,10 +13,10 @@
13
13
  "author": "",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@pronto-tools-and-more/file-watcher": "3.3.8",
17
- "@pronto-tools-and-more/files": "3.3.8",
18
- "@pronto-tools-and-more/network-process": "3.3.8",
19
- "@pronto-tools-and-more/sass-compiler": "3.3.8",
16
+ "@pronto-tools-and-more/file-watcher": "3.3.9",
17
+ "@pronto-tools-and-more/files": "3.3.9",
18
+ "@pronto-tools-and-more/network-process": "3.3.9",
19
+ "@pronto-tools-and-more/sass-compiler": "3.3.9",
20
20
  "@lvce-editor/assert": "^1.2.0",
21
21
  "@lvce-editor/ipc": "^9.1.0",
22
22
  "@lvce-editor/json-rpc": "^1.3.0",
@@ -0,0 +1,11 @@
1
+ import { fileURLToPath } from 'node:url'
2
+
3
+ export const resolveBin = (name) => {
4
+ try {
5
+ const uri = import.meta.resolve(name)
6
+ const path = fileURLToPath(uri)
7
+ return path
8
+ } catch {
9
+ return ''
10
+ }
11
+ }
@@ -1,10 +1,13 @@
1
1
  import * as Path from "node:path";
2
+ import * as ResolveBin from "../ResolveBin/ResolveBin.js";
2
3
  import * as Root from "../Root/Root.js";
3
4
 
4
- export const sassProcessPath = Path.join(
5
- Root.root,
6
- "packages",
7
- "pronto-sass-compiler",
8
- "src",
9
- "sassCompilerMain.js"
10
- );
5
+ export const sassProcessPath =
6
+ ResolveBin.resolveBin("@pronto-tools-and-more/sass-compiler") ||
7
+ Path.join(
8
+ Root.root,
9
+ "packages",
10
+ "pronto-sass-compiler",
11
+ "src",
12
+ "sassCompilerMain.js"
13
+ );