File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,5 @@ test/fixtures/bar
77test /fixtures /contains-cycle /symlink2
88test /fixtures /contains-cycle /is-cycle
99.vscode /
10- * .js
11- * .d.ts
12- * .js.map
1310! test /fixture
11+ /dist
Original file line number Diff line number Diff line change 1- /test
2- /benchmark.js
3- /appveyor.yml
4- /.travis.yml
5- /.npmignore
1+ # Publish only built artifacts from `dist/` via package.json "files".
2+ # Keep tests and repo-only files out of the tarball.
3+ test
4+ benchmark.js
5+ appveyor.yml
6+ .travis.yml
7+ .npmignore
8+ * .ts
9+ ! dist /** /* .d.ts
10+ ! dist /** /* .d.ts.map
Original file line number Diff line number Diff line change 33 "description" : " Get an array of recursive directory contents" ,
44 "version" : " 3.0.0" ,
55 "author" : " Jo Liss <joliss42@gmail.com>" ,
6- "main" : " index.js" ,
7- "types" : " index.d.ts" ,
6+ "main" : " dist/ index.js" ,
7+ "types" : " dist/ index.d.ts" ,
88 "license" : " MIT" ,
99 "engines" : {
1010 "node" : " 10.* || >= 12.*"
1414 "url" : " https://github.com/joliss/node-walk-sync"
1515 },
1616 "files" : [
17- " index.js" ,
18- " index.d.ts" ,
19- " index.js.map"
17+ " dist/"
2018 ],
2119 "dependencies" : {
2220 "@types/minimatch" : " ^3.0.4" ,
3533 "typescript" : " ~4.3.2"
3634 },
3735 "scripts" : {
38- "prepare" : " tsc -b ." ,
39- "build" : " tsc -b ." ,
40- "clean" : " tsc -b --clean ." ,
36+ "prepare" : " yarn run build" ,
37+ "prepack" : " yarn run build" ,
38+ "build" : " tsc -p ." ,
39+ "clean" : " rimraf dist" ,
4140 "test" : " jest ."
4241 },
4342 "volta" : {
Original file line number Diff line number Diff line change 11'use strict' ;
22
33import * as path from 'path' ;
4- import * as walkSync from '../' ;
4+ import * as walkSync from '../index ' ;
55import * as fs from 'fs' ;
66import { Volume , createFsFromVolume } from 'memfs'
77import { Minimatch } from 'minimatch' ;
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
33 "declaration" : true ,
4+ "declarationMap" : true ,
45 "strict" : true ,
56 "moduleResolution" : " node" ,
67 "module" : " commonjs" ,
78 "target" : " es2017" ,
8- "sourceMap" : true
9+ "sourceMap" : true ,
10+ "outDir" : " ./dist" ,
11+ "rootDir" : " ."
912 },
10- "exclude" : [" index.d.ts" ],
11- "include" : [" index.ts" , " test/test.ts" ]
13+ "exclude" : [
14+ " test/**"
15+ ],
16+ "include" : [
17+ " index.ts"
18+ ]
1219}
You can’t perform that action at this time.
0 commit comments