Skip to content

Commit

Permalink
Merge pull request #194 from ankitskvmdam/fix/path
Browse files Browse the repository at this point in the history
use jsdoc's built in commonPrefix defined in `jsdoc/path`
  • Loading branch information
ankitskvmdam authored Feb 6, 2023
2 parents 17bfe08 + a05c3cc commit de31ef6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
},
"dependencies": {
"@jsdoc/salty": "^0.2.2",
"common-path-prefix": "^3.0.0",
"fs-extra": "^10.1.0",
"html-minifier": "^4.0.0",
"klaw-sync": "^6.0.0",
Expand Down
3 changes: 1 addition & 2 deletions publish.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const _ = require('lodash');
const commonPathPrefix = require('common-path-prefix');
const env = require('jsdoc/env');
const fs = require('fs-extra');
const helper = require('jsdoc/util/templateHelper');
Expand Down Expand Up @@ -779,7 +778,7 @@ exports.publish = function (taffyData, opts, tutorials) {
if (sourceFilePaths.length) {
sourceFiles = shortenPaths(
sourceFiles,
commonPathPrefix(sourceFilePaths)
path.commonPrefix(sourceFilePaths)
);
}

Expand Down

0 comments on commit de31ef6

Please sign in to comment.