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

Commit 79a42ef

Browse files
authored
Merge pull request #453 from itai421/build-fix
Build fix
2 parents 8e53f8c + 4932841 commit 79a42ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/swagger-api/swagger-node.svg?branch=master)](https://travis-ci.org/swagger-api/swagger-node)
1+
[![Build Status](https://travis-ci.org/swagger-api/swagger-node.svg?branch=master)](https://travis-ci.org/swagger-api/swagger-node)
22

33
The `swagger` module provides tools for designing and building Swagger-compliant APIs entirely in Node.js. It integrates with popular Node.js servers, including Express, Hapi, Restify, and Sails, as well as any Connect-based middleware. With `swagger`, you can specify, build, and test your API from the very beginning, on your laptop. It allows you to change and iterate your design without rewriting the logic of your implementation.
44

config/index.js

Lines changed: 1 addition & 1 deletion
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)