diff --git a/package.json b/package.json index 2b137d4..cb8585c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-in-viewport", - "version": "1.0.0-alpha.16", + "version": "1.0.0-alpha.17", "description": "Track React component in viewport using Intersection Observer API", "author": "Roderick Hsiao ", "license": "MIT", @@ -79,6 +79,7 @@ }, "main": "dist/index.js", "module": "dist/es/index.js", + "types": "dist/types/index.d.ts", "bundlesize": [ { "path": "./dist/*.js", @@ -88,6 +89,5 @@ "path": "./dist/es/*.js", "maxSize": "2.5 kB" } - ], - "types": "dist/types/index.d.ts" + ] } diff --git a/tsconfig.json b/tsconfig.json index ec64fd7..a4c5ec7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,17 +3,18 @@ "src/**/*.js" ], "compilerOptions": { - "target": "ES6", "allowJs": true, "declaration": true, "emitDeclarationOnly": true, + "module": "commonjs", "outDir": "dist/types", - "types": [], - "module": "commonjs" + "target": "ES6", + "types": [] }, "exclude": [ "./node_modules", "./src/__tests__", "./src/setupTests.js", + "./src/stories", ] } diff --git a/yarn.lock b/yarn.lock index 9e10e52..2c190b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9203,9 +9203,9 @@ react-addons-create-fragment@^15.6.2: object-assign "^4.1.0" react-aspect-ratio@^1.0.3: - version "1.0.42" - resolved "https://registry.yarnpkg.com/react-aspect-ratio/-/react-aspect-ratio-1.0.42.tgz#04bf3e4d11c484bc5638ef5b22b84fb428ebc809" - integrity sha512-TlDS7GZ6Fot6yMo1OYWrcxI/cggGsU4xsfXLastv6FfcZq0e99LeMq+OUbrlEjtOzi00QzNvkoj5T2vDqJNAmw== + version "1.0.49" + resolved "https://registry.yarnpkg.com/react-aspect-ratio/-/react-aspect-ratio-1.0.49.tgz#346863ebb7eec542b8a5a4d6548440bf95a88608" + integrity sha512-zSKVJdy7QjmFeWTNNoL+gLf4KugIVln6XdKNIxjY8yebJ0buCeKcKoEQPfxruSbPGFakFGVl/abtF9SDpauh/A== react-clientside-effect@^1.2.2: version "1.2.2"