Skip to content

Commit

Permalink
Merge pull request #25 from nanoexpress/fix/windows-path
Browse files Browse the repository at this point in the history
fix(@nanoexpress/middleware-schemator): fix import config file in Win…
  • Loading branch information
dalisoft authored Jun 8, 2021
2 parents c4ab50b + 6558ef0 commit 64226fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schemator/utils/importize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'path';
// eslint-disable-next-line consistent-return
const importize = ({ path: _path, raw }, directory) => {
if (path && !raw) {
const resolveFile = path.resolve(directory, _path);
const resolveFile = path.join(directory.substring(1), _path);

const readBuffer = fs.readFileSync(resolveFile, 'utf-8');

Expand Down

0 comments on commit 64226fa

Please sign in to comment.