mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
19 lines
No EOL
449 B
JavaScript
19 lines
No EOL
449 B
JavaScript
const path = require('path');
|
|
|
|
function resolvePackagePath() {
|
|
const pathList = Array.from(arguments);
|
|
const baseDir = path.join(resolveProjectPath(), 'packages');
|
|
return path.join(baseDir, ...pathList);
|
|
}
|
|
|
|
function resolveProjectPath() {
|
|
const pathList = Array.from(arguments);
|
|
const baseDir = path.join(__dirname, '..', '..');
|
|
return path.join(baseDir, ...pathList);
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
resolveProjectPath,
|
|
resolvePackagePath,
|
|
} |