├── .autod.conf.js ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .travis.yml ├── History.md ├── LICENSE ├── README.md ├── appveyor.yml ├── bin ├── pkgfiles.js └── ypkgfiles.js ├── index.js ├── package.json └── test ├── check.test.js ├── fixtures ├── bin │ ├── bin │ │ └── bin.js │ ├── index.js │ └── package.json ├── check-array │ ├── index.js │ ├── lib │ │ └── index.js │ └── package.json ├── check-order │ ├── index.js │ ├── lib │ │ └── index.js │ └── package.json ├── dts │ ├── index.d.ts │ ├── index.js │ └── package.json ├── multi-entry │ ├── a.js │ ├── a │ │ └── index.js │ ├── app │ │ └── app │ │ │ └── app.js │ ├── b.js │ ├── b │ │ └── index.js │ ├── c │ │ └── index.js │ ├── index.js │ └── package.json ├── no-export │ ├── a.js │ └── package.json ├── pkgfiles │ ├── app.js │ ├── app │ │ └── extend │ │ │ └── context.js │ ├── config │ │ └── config.default.js │ ├── package.json │ └── test │ │ └── index.test.js ├── recursive │ ├── index.js │ ├── lib │ │ └── a.js │ ├── package.json │ └── util.js └── resolve │ ├── c │ └── index.js │ ├── index.js │ ├── lib │ ├── a.js │ └── b.js │ ├── package.json │ ├── pkg │ └── package.json │ └── util.js └── index.test.js /.autod.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/.autod.conf.js -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | test/fixtures 2 | coverage 3 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "egg" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/.travis.yml -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/History.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/appveyor.yml -------------------------------------------------------------------------------- /bin/pkgfiles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/bin/pkgfiles.js -------------------------------------------------------------------------------- /bin/ypkgfiles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/bin/ypkgfiles.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/package.json -------------------------------------------------------------------------------- /test/check.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/test/check.test.js -------------------------------------------------------------------------------- /test/fixtures/bin/bin/bin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/bin/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/bin/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/check-array/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('./lib'); 4 | -------------------------------------------------------------------------------- /test/fixtures/check-array/lib/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/check-array/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/check-order/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('./lib'); 4 | -------------------------------------------------------------------------------- /test/fixtures/check-order/lib/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/check-order/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/dts/index.d.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dts/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function(){}; 4 | -------------------------------------------------------------------------------- /test/fixtures/dts/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/multi-entry/a.js: -------------------------------------------------------------------------------- 1 | require('./a/index'); 2 | -------------------------------------------------------------------------------- /test/fixtures/multi-entry/a/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/multi-entry/app/app/app.js: -------------------------------------------------------------------------------- 1 | require('../../c'); 2 | -------------------------------------------------------------------------------- /test/fixtures/multi-entry/b.js: -------------------------------------------------------------------------------- 1 | require('./b/index'); 2 | -------------------------------------------------------------------------------- /test/fixtures/multi-entry/b/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/multi-entry/c/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/multi-entry/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/multi-entry/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/no-export/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/no-export/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/pkgfiles/app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function(){}; 4 | -------------------------------------------------------------------------------- /test/fixtures/pkgfiles/app/extend/context.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = {}; 4 | -------------------------------------------------------------------------------- /test/fixtures/pkgfiles/config/config.default.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = {}; 4 | -------------------------------------------------------------------------------- /test/fixtures/pkgfiles/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/pkgfiles/test/index.test.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/recursive/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/test/fixtures/recursive/index.js -------------------------------------------------------------------------------- /test/fixtures/recursive/lib/a.js: -------------------------------------------------------------------------------- 1 | require('../util'); 2 | -------------------------------------------------------------------------------- /test/fixtures/recursive/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/recursive/util.js: -------------------------------------------------------------------------------- 1 | require('./lib/a'); 2 | -------------------------------------------------------------------------------- /test/fixtures/resolve/c/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/resolve/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/test/fixtures/resolve/index.js -------------------------------------------------------------------------------- /test/fixtures/resolve/lib/a.js: -------------------------------------------------------------------------------- 1 | require('autod'); 2 | -------------------------------------------------------------------------------- /test/fixtures/resolve/lib/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/resolve/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/resolve/pkg/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/fixtures/resolve/util.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popomore/ypkgfiles/HEAD/test/index.test.js --------------------------------------------------------------------------------