Skip to content

Commit

Permalink
chore: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jan 20, 2023
1 parent 25b0084 commit b324130
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ npm i load-config-ts -S
```js
import { loadConfig } from 'load-config-ts';
// This load try to load at process.cwd():
// - speedy.config.js
// - speedy.config.ts
// - speedyrc.js
// - speedyrc.ts
// - ulivz.config.js
// - ulivz.config.ts
// - ulivzrc.js
// - ulivzrc.ts
const config = loadConfig({
configKey: 'speedy',
configKey: 'ulivz',
});
```

Custom config path:

```js
// This will load `speedy.config.test.js` directly:
// This will load `ulivz.config.test.js` directly:
const config = loadConfig({
cwd: useScene('config-suffix'),
configKey: 'speedy',
configFile: 'speedy.config.test.js',
configKey: 'ulivz',
configFile: 'ulivz.config.test.js',
});
```

Expand Down

0 comments on commit b324130

Please sign in to comment.