codify-plugin-lib 1.0.182-beta35 → 1.0.182-beta37

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.
@@ -1,6 +1,8 @@
1
1
  import fs from 'node:fs/promises';
2
2
  import path from 'node:path';
3
- export const listAllResources = async (root = process.cwd()) => {
3
+ import * as url from 'node:url';
4
+ export const listAllResources = async (root = path.join(path.dirname(url.fileURLToPath(import.meta.url)), '..', '..', '..', '..', '..')) => {
5
+ console.log('Dirname', root);
4
6
  const resourcesPath = path.join(root, 'src', 'resources');
5
7
  const resourceDir = await fs.readdir(resourcesPath);
6
8
  const dedupSet = new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.182-beta35",
3
+ "version": "1.0.182-beta37",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,7 +1,10 @@
1
1
  import fs from 'node:fs/promises';
2
2
  import path from 'node:path';
3
+ import * as url from 'node:url';
4
+
5
+ export const listAllResources = async (root = path.join(path.dirname(url.fileURLToPath(import.meta.url)), '..', '..', '..', '..', '..')) => {
6
+ console.log('Dirname', root);
3
7
 
4
- export const listAllResources = async (root = process.cwd()) => {
5
8
  const resourcesPath = path.join(root, 'src', 'resources')
6
9
 
7
10
  const resourceDir = await fs.readdir(resourcesPath);