Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 4932841

Browse files
committed
Revert "npm@3 support: fix swagger-editor dir path"
This reverts commit 103b833.
1 parent e910526 commit 4932841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = config;
3232

3333
config.swagger = {
3434
fileName: 'api/swagger/swagger.yaml',
35-
editorDir: path.dirname(require.resolve('swagger-editor')),
35+
editorDir: path.resolve(config.nodeModules, 'swagger-editor'),
3636
editorConfig: {
3737
analytics: { google: { id: null } },
3838
disableCodeGen: true,

0 commit comments

Comments
 (0)