ws-pkg-list
get Yarn Workspaces Packages List and can help create `paths` for `tsconfig.json`
Last updated 10 hours ago by bluelovers .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ws-pkg-list 
SYNC missed versions from official npm registry.

ws-pkg-list

get Yarn Workspaces Packages List and can help create paths for tsconfig.json

demo

console.log(workspacesPackagesList(process.cwd(), true));
/*
[ '[abs path]/packages/create-yarn-workspaces',
  '[abs path]/packages/find-pkg-ws',
  '[abs path]/packages/npm-init2',
  '[abs path]/packages/workspaces-config',
  '[abs path]/packages/ws-pkg-list' ]
 */
console.log(readPackages(workspacesPackagesList(process.cwd(), false)));
/*
{ 'create-yarn-workspaces':
   { name: 'create-yarn-workspaces',
     path: '..\\create-yarn-workspaces',
     fullpath:
      '[abs path]\\packages\\create-yarn-workspaces',
     config:
      { name: 'create-yarn-workspaces',
        version: '1.0.7',
        description: 'yarn create yarn-workspaces     npx create-yarn-workspaces',
        keywords: [Array],
        homepage:
         'https://github.com/bluelovers/create-yarn-workspaces#readme',
        bugs: [Object],
        repository: [Object],
        license: 'ISC',
        author: '',
        main: 'index.js',
        bin: [Object],
        directories: [Object],
        scripts: [Object],
        dependencies: [Object],
        devDependencies: {} } },

  ...

  'ws-pkg-list':
   { name: 'ws-pkg-list',
     path: '.',
     fullpath:
      '[abs path]\\packages\\ws-pkg-list',
     config:
      { name: 'ws-pkg-list',
        version: '1.0.0',
        description: 'get Workspaces Packages List',
        main: 'index.js',
        scripts: [Object],
        author: '',
        license: 'ISC',
        dependencies: [Object] } } }
 */
console.log(tsConfigPaths(workspacesPackagesList(true)));
/*
{ 'create-yarn-workspaces/*':
   [ '[abs path]\\packages\\create-yarn-workspaces\\*' ],
  'find-pkg-ws/*':
   [ '[abs path]\\packages\\find-pkg-ws\\*' ],
  'npm-init2/*':
   [ '[abs path]\\packages\\npm-init2\\*' ],
  'workspaces-config/*':
   [ '[abs path]\\packages\\workspaces-config\\*' ],
  'ws-pkg-list/*':
   [ '[abs path]\\packages\\ws-pkg-list\\*' ] }
 */
console.log(tsConfigPaths(workspacesPackagesList(false)));
console.log(tsConfigPaths(process.cwd()));
/*
{ 'create-yarn-workspaces/*':
   [ '..\\create-yarn-workspaces\\*',
     '[abs path]\\packages\\create-yarn-workspaces\\*' ],
  'find-pkg-ws/*':
   [ '..\\find-pkg-ws\\*',
     '[abs path]\\packages\\find-pkg-ws\\*' ],
  'npm-init2/*':
   [ '..\\npm-init2\\*',
     '[abs path]\\packages\\npm-init2\\*' ],
  'workspaces-config/*':
   [ '..\\workspaces-config\\*',
     '[abs path]\\packages\\workspaces-config\\*' ] }
 */

Current Tags

  • 1.0.13                                ...           latest (10 hours ago)

12 Versions

  • 1.0.13                                ...           10 hours ago
  • 1.0.12                                ...           13 days ago
  • 1.0.11                                ...           a month ago
  • 1.0.10                                ...           2 months ago
  • 1.0.9                                ...           2 months ago
  • 1.0.7                                ...           2 months ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 10
This Week 10
This Month 10
Last Day 0
Last Week 0
Last Month 40
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |