diff --git a/package.json b/package.json index 70f5e0b..4d0dac1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, - "main": "dist/index.js", + "main": "dist/source", "engines": { "node": ">=6" }, @@ -71,7 +71,7 @@ "webpack": "^4.29.0", "webpack-cli": "^3.1.2" }, - "typings": "dist/index.d.ts", + "typings": "dist", "sideEffects": false, "ava": { "babel": false, diff --git a/source/test/any.ts b/test/any.ts similarity index 97% rename from source/test/any.ts rename to test/any.ts index 8473847..3c82bf3 100644 --- a/source/test/any.ts +++ b/test/any.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; import {createAnyError} from './fixtures/create-error'; test('any', t => { diff --git a/source/test/array-buffer.ts b/test/array-buffer.ts similarity index 95% rename from source/test/array-buffer.ts rename to test/array-buffer.ts index 6f8b222..53375dd 100644 --- a/source/test/array-buffer.ts +++ b/test/array-buffer.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('arrayBuffer', t => { t.notThrows(() => { diff --git a/source/test/array.ts b/test/array.ts similarity index 99% rename from source/test/array.ts rename to test/array.ts index 4d57f1c..e45c84f 100644 --- a/source/test/array.ts +++ b/test/array.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('array', t => { t.notThrows(() => { diff --git a/source/test/boolean.ts b/test/boolean.ts similarity index 97% rename from source/test/boolean.ts rename to test/boolean.ts index 77d7fb1..dc9036f 100644 --- a/source/test/boolean.ts +++ b/test/boolean.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('boolean', t => { t.notThrows(() => { diff --git a/source/test/buffer.ts b/test/buffer.ts similarity index 95% rename from source/test/buffer.ts rename to test/buffer.ts index 398ee5d..aecfafa 100644 --- a/source/test/buffer.ts +++ b/test/buffer.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('buffer', t => { t.notThrows(() => { diff --git a/source/test/data-view.ts b/test/data-view.ts similarity index 95% rename from source/test/data-view.ts rename to test/data-view.ts index c38f68a..9c215fd 100644 --- a/source/test/data-view.ts +++ b/test/data-view.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('dataView', t => { t.notThrows(() => { diff --git a/source/test/date.ts b/test/date.ts similarity index 98% rename from source/test/date.ts rename to test/date.ts index 1a535ae..d373c44 100644 --- a/source/test/date.ts +++ b/test/date.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('date', t => { t.notThrows(() => { diff --git a/source/test/error.ts b/test/error.ts similarity index 99% rename from source/test/error.ts rename to test/error.ts index 7a45cac..7d2a607 100644 --- a/source/test/error.ts +++ b/test/error.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; class CustomError extends Error { constructor(message: string) { diff --git a/source/test/fixtures/create-error.ts b/test/fixtures/create-error.ts similarity index 100% rename from source/test/fixtures/create-error.ts rename to test/fixtures/create-error.ts diff --git a/source/test/function.ts b/test/function.ts similarity index 95% rename from source/test/function.ts rename to test/function.ts index ca69938..f1dd28f 100644 --- a/source/test/function.ts +++ b/test/function.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('function', t => { t.notThrows(() => { diff --git a/source/test/infer-label.ts b/test/infer-label.ts similarity index 98% rename from source/test/infer-label.ts rename to test/infer-label.ts index 0a81c94..f98f3bd 100644 --- a/source/test/infer-label.ts +++ b/test/infer-label.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; import {createAnyError} from './fixtures/create-error'; test('infer label', t => { diff --git a/source/test/iterable.ts b/test/iterable.ts similarity index 94% rename from source/test/iterable.ts rename to test/iterable.ts index f69ff6c..c575463 100644 --- a/source/test/iterable.ts +++ b/test/iterable.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('iterable', t => { t.notThrows(() => { diff --git a/source/test/map.ts b/test/map.ts similarity index 99% rename from source/test/map.ts rename to test/map.ts index d83e424..d796783 100644 --- a/source/test/map.ts +++ b/test/map.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('map', t => { t.notThrows(() => { diff --git a/source/test/nan.ts b/test/nan.ts similarity index 95% rename from source/test/nan.ts rename to test/nan.ts index b075f27..2a7f8ab 100644 --- a/source/test/nan.ts +++ b/test/nan.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('nan', t => { t.notThrows(() => { diff --git a/source/test/null-or-undefined.ts b/test/null-or-undefined.ts similarity index 96% rename from source/test/null-or-undefined.ts rename to test/null-or-undefined.ts index 872dcd3..cdac326 100644 --- a/source/test/null-or-undefined.ts +++ b/test/null-or-undefined.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('nullOrUndefined', t => { // tslint:disable-next-line no-null-keyword diff --git a/source/test/null.ts b/test/null.ts similarity index 95% rename from source/test/null.ts rename to test/null.ts index 9c1f94a..b07ed7f 100644 --- a/source/test/null.ts +++ b/test/null.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('null', t => { // tslint:disable-next-line no-null-keyword diff --git a/source/test/number.ts b/test/number.ts similarity index 99% rename from source/test/number.ts rename to test/number.ts index 0060527..70efed5 100644 --- a/source/test/number.ts +++ b/test/number.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('number', t => { t.notThrows(() => { diff --git a/source/test/object.ts b/test/object.ts similarity index 99% rename from source/test/object.ts rename to test/object.ts index e844641..399e97f 100644 --- a/source/test/object.ts +++ b/test/object.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; class Unicorn {} // tslint:disable-line diff --git a/source/test/optional.ts b/test/optional.ts similarity index 95% rename from source/test/optional.ts rename to test/optional.ts index 396fc9c..b18823d 100644 --- a/source/test/optional.ts +++ b/test/optional.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('optional', t => { t.notThrows(() => { diff --git a/source/test/promise.ts b/test/promise.ts similarity index 95% rename from source/test/promise.ts rename to test/promise.ts index 71d68b8..10b1c98 100644 --- a/source/test/promise.ts +++ b/test/promise.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('promise', t => { t.notThrows(() => { diff --git a/source/test/regexp.ts b/test/regexp.ts similarity index 95% rename from source/test/regexp.ts rename to test/regexp.ts index ddc92e2..4dc6965 100644 --- a/source/test/regexp.ts +++ b/test/regexp.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('regExp', t => { t.notThrows(() => { diff --git a/source/test/set.ts b/test/set.ts similarity index 99% rename from source/test/set.ts rename to test/set.ts index 2fdc632..7efc551 100644 --- a/source/test/set.ts +++ b/test/set.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('set', t => { t.notThrows(() => { diff --git a/source/test/string.ts b/test/string.ts similarity index 99% rename from source/test/string.ts rename to test/string.ts index ddcbb20..c55e015 100644 --- a/source/test/string.ts +++ b/test/string.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('string', t => { const bar: any = 12; diff --git a/source/test/symbol.ts b/test/symbol.ts similarity index 93% rename from source/test/symbol.ts rename to test/symbol.ts index 81bcc9f..c8a9608 100644 --- a/source/test/symbol.ts +++ b/test/symbol.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('symbol', t => { t.notThrows(() => { diff --git a/source/test/test.ts b/test/test.ts similarity index 99% rename from source/test/test.ts rename to test/test.ts index 92fe7ca..1ea48f7 100644 --- a/source/test/test.ts +++ b/test/test.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; import {createAnyError} from './fixtures/create-error'; test('not', t => { diff --git a/source/test/typed-array.ts b/test/typed-array.ts similarity index 99% rename from source/test/typed-array.ts rename to test/typed-array.ts index ae45b52..503f14b 100644 --- a/source/test/typed-array.ts +++ b/test/typed-array.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('typedArray', t => { t.notThrows(() => { diff --git a/source/test/undefined.ts b/test/undefined.ts similarity index 96% rename from source/test/undefined.ts rename to test/undefined.ts index 8938ca0..610b59d 100644 --- a/source/test/undefined.ts +++ b/test/undefined.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('undefined', t => { const x = undefined; diff --git a/source/test/weak-map.ts b/test/weak-map.ts similarity index 98% rename from source/test/weak-map.ts rename to test/weak-map.ts index 0b75f25..a9b286e 100644 --- a/source/test/weak-map.ts +++ b/test/weak-map.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; test('weakMap', t => { t.notThrows(() => { diff --git a/source/test/weak-set.ts b/test/weak-set.ts similarity index 98% rename from source/test/weak-set.ts rename to test/weak-set.ts index c37e256..b324db5 100644 --- a/source/test/weak-set.ts +++ b/test/weak-set.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import ow from '..'; +import ow from '../source'; const unicorn = {unicorn: '🦄'}; const rainbow = {rainbow: '🌈'}; diff --git a/tsconfig.json b/tsconfig.json index 6b067c1..5293f06 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,10 @@ "es2016" ] }, + "include": [ + "source", + "test" + ], "typedocOptions": { "out": "docs", // Links to `ArrayPredicate` and others doesn't work when this is specified...