Files
workbox/gulp-tasks/utils/pkg-path-to-name.js
T
Jeffrey PosnickandGitHub 9d88f2abae The contents of v3, reconciled with master (#1357)
* The contents of v3, reconciled with master.

* Remove a few stray files.

* Another extra file.

* Two more deletions.

* Setting up for stable release

* v3.0.0

* Updating CDN and versions

* Doc repair for wf (#1358)

* Changing doc structure to work with WF

* Changing doc structure to work with WF
2018-03-13 15:20:33 -04:00

10 lines
267 B
JavaScript

const path = require('path');
const packagesPath = path.join(__dirname, '..', '..', 'packages');
// A helper method that should be used when you want to log
// the package name ONLY.
module.exports = (pkgPath) => {
return path.relative(packagesPath, pkgPath);
};