@tangelo/tangelo-configuration-toolkit 1.23.0 → 1.23.1

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": "@tangelo/tangelo-configuration-toolkit",
3
- "version": "1.23.0",
3
+ "version": "1.23.1",
4
4
  "engines": {
5
5
  "node": ">=14.0.0"
6
6
  },
@@ -3,7 +3,7 @@ const globby = require('globby');
3
3
  const path = require('path');
4
4
  const sass = require('sass');
5
5
  const SaxonJS = require('saxon-js');
6
-
6
+ const url = require('url');
7
7
 
8
8
  module.exports = class TclConfig {
9
9
 
@@ -37,8 +37,8 @@ module.exports = class TclConfig {
37
37
  static #transformJsonToCss(tclFilePathRel, json, moduleName) {
38
38
  this.#jsonToScssFile ??= _modulesTdi.require(this.#JSON_TO_SCSS_FILE_PATH, {message: false});
39
39
  const scss = this.#jsonToScssFile(json.project, moduleName);
40
- const url = new URL(path.join('file://', path.resolve(tclFilePathRel)));
41
- return sass.compileString(scss, {url, style: 'compressed'}).css;
40
+ const fileUrl = url.pathToFileURL(tclFilePathRel);
41
+ return sass.compileString(scss, {url: fileUrl, style: 'compressed'}).css;
42
42
  }
43
43
 
44
44
  static #addCssImportToHtml(dir) {