- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
451 B
JavaScript
19 lines
451 B
JavaScript
var path = require('path');
|
|
|
|
module.exports = function(opts) {
|
|
if (!opts) {
|
|
opts = {};
|
|
}
|
|
var cwd = opts.cwd;
|
|
var configPath = opts.configPath;
|
|
// if a path to the desired config was specified
|
|
// but no cwd was provided, use configPath dir
|
|
if (typeof configPath === 'string' && !cwd) {
|
|
cwd = path.dirname(path.resolve(configPath));
|
|
}
|
|
if (typeof cwd === 'string') {
|
|
return path.resolve(cwd);
|
|
}
|
|
return process.cwd();
|
|
};
|