@rxap/plugin-utilities 16.1.0-dev.1 → 16.1.0-dev.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [16.1.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.0-dev.1...@rxap/plugin-utilities@16.1.0-dev.2) (2023-08-03)
7
+
8
+ ### Bug Fixes
9
+
10
+ - use absolute path to access files ([32323ab](https://gitlab.com/rxap/packages/commit/32323ab900da408dcd6ae05dc12e562feff798f9))
11
+
6
12
  # [16.1.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@16.1.0-dev.0...@rxap/plugin-utilities@16.1.0-dev.1) (2023-08-03)
7
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/plugin-utilities",
3
- "version": "16.1.0-dev.1",
3
+ "version": "16.1.0-dev.2",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -44,7 +44,7 @@
44
44
  }
45
45
  ]
46
46
  },
47
- "gitHead": "5601620d3b3fc43f63d114b0953635992f783070",
47
+ "gitHead": "38078f7707e6461caef781fca512fb2c9e53506b",
48
48
  "main": "./src/index.js",
49
49
  "types": "./src/index.d.ts"
50
50
  }
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.writeFileToProjectRoot = exports.readFileFromProjectRoot = void 0;
4
- const project_1 = require("./project");
5
- const path_1 = require("path");
6
4
  const fs_1 = require("fs");
5
+ const path_1 = require("path");
6
+ const project_1 = require("./project");
7
7
  function readFileFromProjectRoot(context, fileName, requiredOrDefaultContent = '') {
8
8
  const projectRoot = (0, project_1.GetProjectRoot)(context);
9
- const filePath = (0, path_1.join)(projectRoot, fileName);
9
+ const filePath = (0, path_1.join)(context.root, projectRoot, fileName);
10
10
  if (!(0, fs_1.existsSync)(filePath)) {
11
11
  if (requiredOrDefaultContent === true) {
12
12
  throw new Error(`The file ${filePath} not exists!`);
@@ -18,7 +18,7 @@ function readFileFromProjectRoot(context, fileName, requiredOrDefaultContent = '
18
18
  exports.readFileFromProjectRoot = readFileFromProjectRoot;
19
19
  function writeFileToProjectRoot(context, fileName, content) {
20
20
  const projectRoot = (0, project_1.GetProjectRoot)(context);
21
- const filePath = (0, path_1.join)(projectRoot, fileName);
21
+ const filePath = (0, path_1.join)(context.root, projectRoot, fileName);
22
22
  (0, fs_1.writeFileSync)(filePath, content);
23
23
  }
24
24
  exports.writeFileToProjectRoot = writeFileToProjectRoot;
@@ -1 +1 @@
1
- {"version":3,"file":"project-root-files.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/project-root-files.ts"],"names":[],"mappings":";;;AACA,uCAA2C;AAC3C,+BAA4B;AAC5B,2BAIY;AAEZ,SAAgB,uBAAuB,CACrC,OAAwB,EACxB,QAAgB,EAChB,2BAA0C,EAAE;IAE5C,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAI,CAAC,IAAA,eAAU,EAAC,QAAQ,CAAC,EAAE;QACzB,IAAI,wBAAwB,KAAK,IAAI,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,YAAa,QAAS,cAAc,CAAC,CAAC;SACvD;QACD,OAAO,wBAAwB,CAAC;KACjC;IACD,OAAO,IAAA,iBAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACzC,CAAC;AAdD,0DAcC;AAED,SAAgB,sBAAsB,CAAC,OAAwB,EAAE,QAAgB,EAAE,OAAe;IAChG,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAA,kBAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC;AAJD,wDAIC"}
1
+ {"version":3,"file":"project-root-files.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/project-root-files.ts"],"names":[],"mappings":";;;AACA,2BAIY;AACZ,+BAA4B;AAC5B,uCAA2C;AAE3C,SAAgB,uBAAuB,CACrC,OAAwB,EACxB,QAAgB,EAChB,2BAA0C,EAAE;IAE5C,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC3D,IAAI,CAAC,IAAA,eAAU,EAAC,QAAQ,CAAC,EAAE;QACzB,IAAI,wBAAwB,KAAK,IAAI,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,YAAa,QAAS,cAAc,CAAC,CAAC;SACvD;QACD,OAAO,wBAAwB,CAAC;KACjC;IACD,OAAO,IAAA,iBAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACzC,CAAC;AAdD,0DAcC;AAED,SAAgB,sBAAsB,CAAC,OAAwB,EAAE,QAAgB,EAAE,OAAe;IAChG,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC3D,IAAA,kBAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC;AAJD,wDAIC"}