1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = void 0;
|
7 |
|
8 |
|
9 | var klawSync = require('klaw-sync');
|
10 |
|
11 |
|
12 | var md5 = require('md5');
|
13 |
|
14 | var dirChecksum = function dirChecksum(dirPath) {
|
15 | return md5(klawSync(dirPath, {
|
16 | nodir: true,
|
17 | filter: function filter(_ref) {
|
18 | var path = _ref.path;
|
19 | return !RegExp('node_modules').test(path) && !RegExp('.git').test(path);
|
20 | }
|
21 | }).map(function (f) {
|
22 | return md5(f.path);
|
23 | }).join());
|
24 | };
|
25 |
|
26 | var _default = dirChecksum;
|
27 | exports.default = _default; |
\ | No newline at end of file |