Skip to content

Commit 1332d7a

Browse files
author
Dmitriy Kuznetsov
committed
Move sources to src
1 parent 9daebb0 commit 1332d7a

14 files changed

+11
-296
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ npm-debug.log*
77
*.sublime*
88
*.log
99
yarn-error.log
10+
/lib

Makefile

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@ pretty:
22
yarn prettier --write ./*.ts
33

44
prepare: jest
5-
yarn prettier --write ./*.ts
5+
yarn prettier --write ./src/*.ts
66
yarn tsc
77

88
clean:
9-
rm index.js || true
10-
rm index.d.ts || true
11-
rm options.js || true
12-
rm options.d.ts || true
13-
rm types.js || true
14-
rm types.d.ts || true
9+
rm -r lib || true
1510

1611
jest: clean
1712
yarn jest

__tests__/common.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path'
22
// @ts-ignore
3-
import getAffected, { getAffectedSync } from '../index.ts'
3+
import getAffected, { getAffectedSync } from '../src'
44

55
const af = getAffectedSync
66
const afa = getAffected

index.d.ts

-4
This file was deleted.

index.js

-104
This file was deleted.

options.d.ts

-10
This file was deleted.

options.js

-134
This file was deleted.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Retrieves all files which affected in current git branch",
55
"author": "Diokuz",
66
"license": "MIT",
7+
"main": "lib/index.js",
78
"repository": {
89
"type": "git",
910
"url": "git://github.com/diokuz/affected-files.git"

index.ts src/index.ts

File renamed without changes.

options.ts src/options.ts

File renamed without changes.

types.ts src/types.ts

File renamed without changes.

tsconfig.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
44
"esModuleInterop": true,
5-
"target": "es2015",
6-
"lib": ["es2015"],
7-
"rootDir": "./",
5+
"target": "es2017",
6+
"rootDir": "./src",
7+
"outDir": "./lib",
8+
"baseUrl": "./src",
89
"moduleResolution": "Node",
910
"module": "CommonJS",
1011
"noUnusedLocals": true,
1112
"noUnusedParameters": true,
1213
"declaration": true,
13-
"resolveJsonModule": true,
1414
"strictNullChecks": true,
1515
"downlevelIteration": true,
1616
"noImplicitAny": true
1717
},
1818
"exclude": [
19-
"./__tests__/**/*"
19+
"./__tests__/**/*",
20+
"./lib/**/*"
2021
]
2122
}

types.d.ts

-29
This file was deleted.

types.js

-2
This file was deleted.

0 commit comments

Comments
 (0)