codify-plugin-lib 1.0.182-beta36 → 1.0.182-beta38
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,8 +1,8 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import * as url from 'node:url';
|
|
4
|
-
export const listAllResources = async (root = path.dirname(url.fileURLToPath(import.meta.url))) => {
|
|
5
|
-
console.log('Dirname',
|
|
4
|
+
export const listAllResources = async (root = path.join(path.dirname(url.fileURLToPath(import.meta.url)), '..', '..', '..', '..')) => {
|
|
5
|
+
console.log('Dirname', root);
|
|
6
6
|
const resourcesPath = path.join(root, 'src', 'resources');
|
|
7
7
|
const resourceDir = await fs.readdir(resourcesPath);
|
|
8
8
|
const dedupSet = new Set();
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@ import fs from 'node:fs/promises';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import * as url from 'node:url';
|
|
4
4
|
|
|
5
|
-
export const listAllResources = async (root = path.dirname(url.fileURLToPath(import.meta.url))) => {
|
|
6
|
-
console.log('Dirname',
|
|
5
|
+
export const listAllResources = async (root = path.join(path.dirname(url.fileURLToPath(import.meta.url)), '..', '..', '..', '..')) => {
|
|
6
|
+
console.log('Dirname', root);
|
|
7
7
|
|
|
8
8
|
const resourcesPath = path.join(root, 'src', 'resources')
|
|
9
9
|
|