ic-mops 0.21.0 → 0.21.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/commands/sources.ts +3 -2
- package/dist/commands/sources.js +3 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/commands/sources.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
|
-
import {checkConfigFile, formatDir, formatGithubDir, parseGithubURL, readConfig} from '../mops.js';
|
|
4
|
+
import {checkConfigFile, formatDir, formatGithubDir, getRootDir, parseGithubURL, readConfig} from '../mops.js';
|
|
5
5
|
import {VesselConfig, readVesselConfig} from '../vessel.js';
|
|
6
6
|
import {Config, Dependency} from '../types.js';
|
|
7
7
|
|
|
@@ -111,10 +111,11 @@ export async function sources({verbose = false} = {}) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// sources
|
|
114
|
+
let rootDir = getRootDir();
|
|
114
115
|
return Object.entries(packages).map(([name, pkg]) => {
|
|
115
116
|
let pkgDir;
|
|
116
117
|
if (pkg.path) {
|
|
117
|
-
pkgDir = path.relative(process.cwd(), path.resolve(pkg.path));
|
|
118
|
+
pkgDir = path.relative(process.cwd(), path.resolve(rootDir, pkg.path));
|
|
118
119
|
pkgDir = pkgDir.replaceAll('{MOPS_ENV}', process.env.MOPS_ENV || 'local');
|
|
119
120
|
}
|
|
120
121
|
else if (pkg.repo) {
|
package/dist/commands/sources.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
|
-
import { checkConfigFile, formatDir, formatGithubDir, parseGithubURL, readConfig } from '../mops.js';
|
|
4
|
+
import { checkConfigFile, formatDir, formatGithubDir, getRootDir, parseGithubURL, readConfig } from '../mops.js';
|
|
5
5
|
import { readVesselConfig } from '../vessel.js';
|
|
6
6
|
// TODO: resolve conflicts
|
|
7
7
|
export async function sources({ verbose = false } = {}) {
|
|
@@ -91,10 +91,11 @@ export async function sources({ verbose = false } = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
// sources
|
|
94
|
+
let rootDir = getRootDir();
|
|
94
95
|
return Object.entries(packages).map(([name, pkg]) => {
|
|
95
96
|
let pkgDir;
|
|
96
97
|
if (pkg.path) {
|
|
97
|
-
pkgDir = path.relative(process.cwd(), path.resolve(pkg.path));
|
|
98
|
+
pkgDir = path.relative(process.cwd(), path.resolve(rootDir, pkg.path));
|
|
98
99
|
pkgDir = pkgDir.replaceAll('{MOPS_ENV}', process.env.MOPS_ENV || 'local');
|
|
99
100
|
}
|
|
100
101
|
else if (pkg.repo) {
|
package/dist/package.json
CHANGED