Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ test/fixtures/bar
test/fixtures/contains-cycle/symlink2
test/fixtures/contains-cycle/is-cycle
.vscode/
*.js
*.d.ts
*.js.map
!test/fixture
/dist
15 changes: 10 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/test
/benchmark.js
/appveyor.yml
/.travis.yml
/.npmignore
# Publish only built artifacts from `dist/` via package.json "files".
# Keep tests and repo-only files out of the tarball.
test
benchmark.js
appveyor.yml
.travis.yml
.npmignore
*.ts
!dist/**/*.d.ts
!dist/**/*.d.ts.map
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "Get an array of recursive directory contents",
"version": "3.0.0",
"author": "Jo Liss <joliss42@gmail.com>",
"main": "index.js",
"types": "index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
"engines": {
"node": "10.* || >= 12.*"
Expand All @@ -14,9 +14,7 @@
"url": "https://github.com/joliss/node-walk-sync"
},
"files": [
"index.js",
"index.d.ts",
"index.js.map"
"dist/"
],
"dependencies": {
"@types/minimatch": "^3.0.4",
Expand All @@ -35,9 +33,10 @@
"typescript": "~4.3.2"
},
"scripts": {
"prepare": "tsc -b .",
"build": "tsc -b .",
"clean": "tsc -b --clean .",
"prepare": "yarn run build",
"prepack": "yarn run build",
"build": "tsc -p .",
"clean": "rimraf dist",
"test": "jest ."
},
"volta": {
Expand Down
2 changes: 1 addition & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import * as path from 'path';
import * as walkSync from '../';
import * as walkSync from '../index';
import * as fs from 'fs';
import {Volume, createFsFromVolume} from 'memfs'
import { Minimatch } from 'minimatch';
Expand Down
13 changes: 10 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"strict": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "es2017",
"sourceMap": true
"sourceMap": true,
"outDir": "./dist",
"rootDir": "."
},
"exclude": ["index.d.ts"],
"include": ["index.ts", "test/test.ts"]
"exclude": [
"test/**"
],
"include": [
"index.ts"
]
}
Loading