chore: initialize qiming workspace repository
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
|
||||
/**
|
||||
* Electron client project root (crates/agent-electron-client).
|
||||
* This file lives at scripts/utils/, so ../.. always points to project root.
|
||||
*/
|
||||
function getProjectRoot() {
|
||||
return path.resolve(__dirname, '..', '..');
|
||||
}
|
||||
|
||||
function resolveFromProject(...parts) {
|
||||
return path.join(getProjectRoot(), ...parts);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getProjectRoot,
|
||||
resolveFromProject,
|
||||
};
|
||||
Reference in New Issue
Block a user