Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit 2c3e78e

Browse files
fix(package): Use lib instead of dist
1 parent 9c0d1f7 commit 2c3e78e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.nyc_output/
22
coverage/
3-
dist/
3+
lib/
44
node_modules/
55
npm-debug.log
66
yarn-error.log

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ validator.required().stringType().validate('foo'); //=> true
4343
Or, import only a subset of the library:
4444

4545
```js
46-
import StringType from 'awesome-validator/dist/rules/string-type';
46+
import StringType from 'awesome-validator/lib/rules/string-type';
4747

4848
new StringType().validate('foo'); //=> true
4949
```
@@ -59,7 +59,7 @@ validator.required().stringType().validate('foo'); //=> true
5959
Or, import only a subset of the library:
6060

6161
```ts
62-
import { StringType } from 'awesome-validator/dist/rules/string-type';
62+
import { StringType } from 'awesome-validator/lib/rules/string-type';
6363

6464
new StringType().validate('foo'); //=> true
6565
```

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"**/*.yml",
1313
".nyc_output",
1414
"coverage",
15-
"dist",
15+
"lib",
1616
"node_modules",
1717
"src",
1818
"test",

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"outDir": "dist",
3+
"outDir": "lib",
44
"target": "es5",
55
"emitDecoratorMetadata": true,
66
"experimentalDecorators": true,
@@ -14,10 +14,10 @@
1414
]
1515
},
1616
"include": [
17-
"src/**/*.ts"
17+
"src"
1818
],
1919
"exclude": [
20-
"dist",
20+
"lib",
2121
"node_modules",
2222
"test"
2323
],

0 commit comments

Comments
 (0)