diff --git a/.eslintrc.js b/.eslintrc.js
index a0e61f2..984993c 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -6,6 +6,7 @@ module.exports = {
'node_modules/',
'package.json',
'tsconfig.json',
+ 'packages/*/dist/',
],
env: {
browser: true,
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
index d8f7672..b28f879 100644
--- a/.github/workflows/npm-publish.yml
+++ b/.github/workflows/npm-publish.yml
@@ -17,7 +17,7 @@ jobs:
- run: yarn
- run: yarn lint-test
- run: yarn build
- - run: yarn publish --access=public
+ - run: yarn workspace @hawk.so/javascript publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
notify:
@@ -28,6 +28,8 @@ jobs:
- name: Get package info
id: package
uses: codex-team/action-nodejs-package-info@v1
+ with:
+ path: packages/javascript
- name: Send a message
uses: codex-team/action-codexbot-notify@v1
with:
diff --git a/README.md b/README.md
index 44fca79..1787ef6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Hawk JavaScript Catcher
+# Hawk JavaScript
Error tracking for JavaScript/TypeScript applications.
@@ -18,210 +18,9 @@ Error tracking for JavaScript/TypeScript applications.
-
Vue support
-
React support
-## Installation
+## Packages
-We recommend adding Hawk script to page above others to prevent missing any errors.
-
-### Install via NPM or Yarn
-
-Install package
-
-```shell
-npm install @hawk.so/javascript --save
-```
-
-```shell
-yarn add @hawk.so/javascript
-```
-
-Then import `@hawk.so/javascript` module to your code.
-
-```js
-import HawkCatcher from '@hawk.so/javascript';
-````
-
-### Load from CDN
-
-Get the newest bundle path from [@hawk.so/javascript](https://www.jsdelivr.com/package/npm/@hawk.so/javascript) — open site and get the link to latest distributed JS bundle.
-
-Then require this script on your site.
-
-```
-
-```
-
-## Usage
-
-### Get an Integration Token
-
-First of all, you should register an account on [hawk.so](https://garage.hawk.so/sign-up).
-
-Then create a Workspace and a Project in there. You'll get an Integration Token.
-
-### Initialize Catcher
-
-Create `HawkCatcher` class instance when script will be ready and pass your Integration Token:
-
-```js
-const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'});
-
-// or
-
-const hawk = new HawkCatcher('INTEGRATION_TOKEN');
-```
-
-Alternately, add `onload="const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'})"` attribute to the `
-```
-
-Initialization settings:
-
-| name | type | required | description |
-| -- | -- | -- | -- |
-| `token` | string | **required** | Your project's Integration Token |
-| `release` | string/number | optional | Unique identifier of the release. Used for source map consuming (see below) |
-| `user` | {id: string, name?: string, image?: string, url?: string} | optional | Current authenticated user |
-| `context` | object | optional | Any data you want to pass with every message. Has limitation of length. |
-| `vue` | Vue constructor | optional | Pass Vue constructor to set up the [Vue integration](#integrate-to-vue-application) |
-| `disableGlobalErrorsHandling` | boolean | optional | Do not initialize global errors handling |
-| `disableVueErrorHandler` | boolean | optional | Do not initialize Vue errors handling |
-| `consoleTracking` | boolean | optional | Initialize console logs tracking |
-| `beforeSend` | function(event) => event | optional | This Method allows you to filter any data you don't want sending to Hawk |
-
-Other available [initial settings](types/hawk-initial-settings.d.ts) are described at the type definition.
-
-## Manual sending
-
-You can send errors or other messages to the Hawk manually, for example at your `catch` blocks or any debug conditions.
-
-Use the `.send(message, context)` method for that. This method accepts the `message` of type `Error` or `string`
-as the first parameter. The second parameter is optional, it allows passing any additional data with the event.
-If you specify the `context` with the `HawkCatcher` constructor, it will be merged with the context passed to the `send` method.
-
-```js
-// init Hawk Catcher instance
-const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'});
-
-// somewhere in try-catch block or other custom place
-hawk.send(new Error('Something went wrong'), {
- myOwnDebugInfo: '1234',
-});
-```
-
-## User Management
-
-You can dynamically manage user information after the catcher is initialized:
-
-```js
-const hawk = new HawkCatcher({ token: 'INTEGRATION_TOKEN' });
-
-// Set user information
-hawk.setUser({
- id: 'user123',
- name: 'John Doe',
- url: '/users/123',
- image: 'https://example.com/avatar.jpg',
-});
-
-// Clear user (revert to generated user)
-hawk.clearUser();
-```
-
-## Context Management
-
-You can dynamically update context data that will be sent with all events:
-
-```js
-const hawk = new HawkCatcher({ token: 'INTEGRATION_TOKEN' });
-
-// Set context data
-hawk.setContext({
- feature: 'user-dashboard',
- version: '2.1.0',
- environment: 'production',
-});
-```
-
-## Source maps consuming
-
-If your bundle is minified, it is useful to pass source-map files to the Hawk. After that you will see beautiful original source code lines in Hawk Garage instead of minified code.
-
-To enable source map consuming you should do two things:
-
-- Send the source map and the release identifier to the Hawk after you build a new version of the script. For example with the [Hawk Webpack Plugin](https://github.com/codex-team/hawk.webpack.plugin) or with cURL request.
-- Pass the release identifier to the Hawk Catcher using `release` option.
-
-## Testing and server responses
-
-To make sure that Hawk is working right, call `test()` method from `HawkCatcher` class instance in browser's console.
-`test()` method sends fake error to server. Then, open Hawk and find a test event at the Project's page.
-
-## Sensitive data filtering
-
-You can filter any data that you don't want to send to Hawk. Use the `beforeSend()` hook for that reason.
-
-```js
-window.hawk = new HawkCatcher({
- token: 'INTEGRATION TOKEN',
- beforeSend(event){
- if (event.user && event.user.name){
- delete event.user.name;
- }
-
- return event;
- }
-})
-```
-
-## Dismiss error
-
-You can use the `beforeSend()` hook to prevent sending a particular event. Return `false` for that.
-
-## Usage with
Vue.js
-
-Vue apps have their own error handler, so if you want to catcher errors thrown inside Vue components, you should set up a Vue integration.
-
-Pass the Vue constructor with the initial settings:
-
-```js
-import Vue from 'vue';
-
-const hawk = new HawkCatcher({
- token: 'INTEGRATION_TOKEN',
- vue: Vue // the Vue constructor you tweak
-});
-```
-
-or pass it any moment after Hawk Catcher was instantiated:
-
-
-```js
-import Vue from 'vue';
-
-const hawk = new HawkCatcher({
- token: 'INTEGRATION_TOKEN',
-});
-
-hawk.connectVue(Vue)
-```
-
-
-## Usage with
React
-
-React is suppported out of the box. No additional setup required.
-
-Create the Hawk Catcher instance in a `index.js` file of your project.
-
-
-```js
-import HawkCatcher from '@hawk.so/javascript';
-
-const hawk = new HawkCatcher({
- token: 'INTEGRATION_TOKEN'
-});
-```
+- **[@hawk.so/javascript](./packages/javascript)** - Core JavaScript/TypeScript error tracking SDK
## License
diff --git a/package.json b/package.json
index 533bb7b..1693e67 100644
--- a/package.json
+++ b/package.json
@@ -1,41 +1,22 @@
{
- "name": "@hawk.so/javascript",
- "type": "commonjs",
- "version": "3.2.12",
- "description": "JavaScript errors tracking for Hawk.so",
- "files": [
- "dist"
+ "private": true,
+ "name": "hawk.javascript",
+ "type": "module",
+ "version": "0.0.0",
+ "workspaces": [
+ "packages/*"
],
- "main": "./dist/hawk.umd.js",
- "module": "./dist/hawk.mjs",
- "types": "dist/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/index.d.ts",
- "import": "./dist/hawk.mjs",
- "require": "./dist/hawk.umd.js"
- }
- },
"scripts": {
- "dev": "vite",
- "build": "vite build",
- "stats": "size-limit > stats.txt",
- "lint": "eslint -c ./.eslintrc.js src/ --ext .ts,.js --fix",
- "lint-test": "eslint -c ./.eslintrc.js src/ --ext .ts,.js"
+ "dev": "yarn workspace @hawk.so/javascript dev",
+ "build": "yarn workspace @hawk.so/javascript build",
+ "stats": "yarn workspace @hawk.so/javascript stats",
+ "lint": "eslint -c ./.eslintrc.js packages/*/src --ext .ts,.js --fix",
+ "lint-test": "eslint -c ./.eslintrc.js packages/*/src --ext .ts,.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/codex-team/hawk.javascript.git"
},
- "author": {
- "name": "CodeX",
- "email": "team@codex.so"
- },
- "license": "AGPL-3.0-only",
- "bugs": {
- "url": "https://github.com/codex-team/hawk.javascript/issues"
- },
- "homepage": "https://github.com/codex-team/hawk.javascript#readme",
"devDependencies": {
"@size-limit/preset-small-lib": "^11.1.6",
"eslint": "^7.24.0",
@@ -43,12 +24,6 @@
"rollup-plugin-license": "^3.5.3",
"size-limit": "^11.1.6",
"typescript": "^5.6.3",
- "vite": "^5.4.9",
- "vue": "^2"
- },
- "dependencies": {
- "@hawk.so/types": "^0.1.36",
- "error-stack-parser": "^2.1.4",
- "vite-plugin-dts": "^4.2.4"
+ "vite": "^5.4.9"
}
}
diff --git a/.babelrc b/packages/javascript/.babelrc
similarity index 100%
rename from .babelrc
rename to packages/javascript/.babelrc
diff --git a/.size-limit.js b/packages/javascript/.size-limit.js
similarity index 64%
rename from .size-limit.js
rename to packages/javascript/.size-limit.js
index 403d5e5..8a8e029 100644
--- a/.size-limit.js
+++ b/packages/javascript/.size-limit.js
@@ -1,6 +1,6 @@
module.exports = [
{
- path: "dist/hawk.js",
+ path: "dist/hawk.umd.js",
name: "hawk browser"
}
];
diff --git a/packages/javascript/README.md b/packages/javascript/README.md
new file mode 100644
index 0000000..072daf9
--- /dev/null
+++ b/packages/javascript/README.md
@@ -0,0 +1,216 @@
+# Hawk JavaScript Catcher
+
+Error tracking for JavaScript/TypeScript applications.
+
+## Installation
+
+We recommend adding Hawk script to page above others to prevent missing any errors.
+
+### Install via NPM or Yarn
+
+Install package
+
+```shell
+npm install @hawk.so/javascript --save
+```
+
+```shell
+yarn add @hawk.so/javascript
+```
+
+Then import `@hawk.so/javascript` module to your code.
+
+```js
+import HawkCatcher from '@hawk.so/javascript';
+```
+
+### Load from CDN
+
+Get the newest bundle path from [@hawk.so/javascript](https://www.jsdelivr.com/package/npm/@hawk.so/javascript) — open site and get the link to latest distributed JS bundle.
+
+Then require this script on your site.
+
+```
+
+```
+
+## Usage
+
+### Get an Integration Token
+
+First of all, you should register an account on [hawk.so](https://garage.hawk.so/sign-up).
+
+Then create a Workspace and a Project in there. You'll get an Integration Token.
+
+### Initialize Catcher
+
+Create `HawkCatcher` class instance when script will be ready and pass your Integration Token:
+
+```js
+const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'});
+
+// or
+
+const hawk = new HawkCatcher('INTEGRATION_TOKEN');
+```
+
+Alternately, add `onload="const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'})"` attribute to the `
+```
+
+Initialization settings:
+
+| name | type | required | description |
+|-------------------------------|-----------------------------------------------------------|--------------|-------------------------------------------------------------------------------------|
+| `token` | string | **required** | Your project's Integration Token |
+| `release` | string/number | optional | Unique identifier of the release. Used for source map consuming (see below) |
+| `user` | {id: string, name?: string, image?: string, url?: string} | optional | Current authenticated user |
+| `context` | object | optional | Any data you want to pass with every message. Has limitation of length. |
+| `vue` | Vue constructor | optional | Pass Vue constructor to set up the [Vue integration](#integrate-to-vue-application) |
+| `disableGlobalErrorsHandling` | boolean | optional | Do not initialize global errors handling |
+| `disableVueErrorHandler` | boolean | optional | Do not initialize Vue errors handling |
+| `consoleTracking` | boolean | optional | Initialize console logs tracking |
+| `beforeSend` | function(event) => event | optional | This Method allows you to filter any data you don't want sending to Hawk |
+
+Other available [initial settings](types/hawk-initial-settings.d.ts) are described at the type definition.
+
+## Manual sending
+
+You can send errors or other messages to the Hawk manually, for example at your `catch` blocks or any debug conditions.
+
+Use the `.send(message, context)` method for that. This method accepts the `message` of type `Error` or `string`
+as the first parameter. The second parameter is optional, it allows passing any additional data with the event.
+If you specify the `context` with the `HawkCatcher` constructor, it will be merged with the context passed to the `send`
+method.
+
+```js
+// init Hawk Catcher instance
+const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'});
+
+// somewhere in try-catch block or other custom place
+hawk.send(new Error('Something went wrong'), {
+ myOwnDebugInfo: '1234',
+});
+```
+
+## User Management
+
+You can dynamically manage user information after the catcher is initialized:
+
+```js
+const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'});
+
+// Set user information
+hawk.setUser({
+ id: 'user123',
+ name: 'John Doe',
+ url: '/users/123',
+ image: 'https://example.com/avatar.jpg',
+});
+
+// Clear user (revert to generated user)
+hawk.clearUser();
+```
+
+## Context Management
+
+You can dynamically update context data that will be sent with all events:
+
+```js
+const hawk = new HawkCatcher({token: 'INTEGRATION_TOKEN'});
+
+// Set context data
+hawk.setContext({
+ feature: 'user-dashboard',
+ version: '2.1.0',
+ environment: 'production',
+});
+```
+
+## Source maps consuming
+
+If your bundle is minified, it is useful to pass source-map files to the Hawk. After that you will see beautiful
+original source code lines in Hawk Garage instead of minified code.
+
+To enable source map consuming you should do two things:
+
+- Send the source map and the release identifier to the Hawk after you build a new version of the script. For example
+ with the [Hawk Webpack Plugin](https://github.com/codex-team/hawk.webpack.plugin) or with cURL request.
+- Pass the release identifier to the Hawk Catcher using `release` option.
+
+## Testing and server responses
+
+To make sure that Hawk is working right, call `test()` method from `HawkCatcher` class instance in browser's console.
+`test()` method sends fake error to server. Then, open Hawk and find a test event at the Project's page.
+
+## Sensitive data filtering
+
+You can filter any data that you don't want to send to Hawk. Use the `beforeSend()` hook for that reason.
+
+```js
+window.hawk = new HawkCatcher({
+ token: 'INTEGRATION TOKEN',
+ beforeSend(event) {
+ if (event.user && event.user.name) {
+ delete event.user.name;
+ }
+
+ return event;
+ }
+})
+```
+
+## Dismiss error
+
+You can use the `beforeSend()` hook to prevent sending a particular event. Return `false` for that.
+
+## Usage with
Vue.js
+
+Vue apps have their own error handler, so if you want to catcher errors thrown inside Vue components, you should set up
+a Vue integration.
+
+Pass the Vue constructor with the initial settings:
+
+```js
+import Vue from 'vue';
+
+const hawk = new HawkCatcher({
+ token: 'INTEGRATION_TOKEN',
+ vue: Vue // the Vue constructor you tweak
+});
+```
+
+or pass it any moment after Hawk Catcher was instantiated:
+
+```js
+import Vue from 'vue';
+
+const hawk = new HawkCatcher({
+ token: 'INTEGRATION_TOKEN',
+});
+
+hawk.connectVue(Vue)
+```
+
+## Usage with
React
+
+React is suppported out of the box. No additional setup required.
+
+Create the Hawk Catcher instance in a `index.js` file of your project.
+
+```js
+import HawkCatcher from '@hawk.so/javascript';
+
+const hawk = new HawkCatcher({
+ token: 'INTEGRATION_TOKEN'
+});
+```
+
+## License
+
+This project is licensed under the **GNU Affero General Public License v3.0 (AGPL-3.0)**.
+See the [LICENSE](./LICENSE) file for the full text.
diff --git a/example/index.html b/packages/javascript/example/index.html
similarity index 100%
rename from example/index.html
rename to packages/javascript/example/index.html
diff --git a/example/sample-errors.js b/packages/javascript/example/sample-errors.js
similarity index 100%
rename from example/sample-errors.js
rename to packages/javascript/example/sample-errors.js
diff --git a/packages/javascript/package.json b/packages/javascript/package.json
new file mode 100644
index 0000000..081f0a1
--- /dev/null
+++ b/packages/javascript/package.json
@@ -0,0 +1,45 @@
+{
+ "name": "@hawk.so/javascript",
+ "version": "3.2.12",
+ "description": "JavaScript errors tracking for Hawk.so",
+ "files": [
+ "dist"
+ ],
+ "main": "./dist/hawk.umd.js",
+ "module": "./dist/hawk.mjs",
+ "types": "dist/index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./dist/index.d.ts",
+ "import": "./dist/hawk.mjs",
+ "require": "./dist/hawk.umd.js"
+ }
+ },
+ "scripts": {
+ "dev": "vite",
+ "build": "vite build",
+ "stats": "size-limit > stats.txt"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/codex-team/hawk.javascript.git",
+ "directory": "packages/javascript"
+ },
+ "author": {
+ "name": "CodeX",
+ "email": "team@codex.so"
+ },
+ "license": "AGPL-3.0-only",
+ "bugs": {
+ "url": "https://github.com/codex-team/hawk.javascript/issues"
+ },
+ "homepage": "https://github.com/codex-team/hawk.javascript#readme",
+ "dependencies": {
+ "@hawk.so/types": "^0.1.36",
+ "error-stack-parser": "^2.1.4"
+ },
+ "devDependencies": {
+ "vue": "^2",
+ "vite-plugin-dts": "^4.2.4"
+ }
+}
diff --git a/src/addons/consoleCatcher.ts b/packages/javascript/src/addons/consoleCatcher.ts
similarity index 100%
rename from src/addons/consoleCatcher.ts
rename to packages/javascript/src/addons/consoleCatcher.ts
diff --git a/src/addons/userAgentInfo.ts b/packages/javascript/src/addons/userAgentInfo.ts
similarity index 100%
rename from src/addons/userAgentInfo.ts
rename to packages/javascript/src/addons/userAgentInfo.ts
diff --git a/src/catcher.ts b/packages/javascript/src/catcher.ts
similarity index 100%
rename from src/catcher.ts
rename to packages/javascript/src/catcher.ts
diff --git a/src/errors.ts b/packages/javascript/src/errors.ts
similarity index 100%
rename from src/errors.ts
rename to packages/javascript/src/errors.ts
diff --git a/src/index.ts b/packages/javascript/src/index.ts
similarity index 100%
rename from src/index.ts
rename to packages/javascript/src/index.ts
diff --git a/src/integrations/vue.ts b/packages/javascript/src/integrations/vue.ts
similarity index 100%
rename from src/integrations/vue.ts
rename to packages/javascript/src/integrations/vue.ts
diff --git a/src/modules/fetchTimer.ts b/packages/javascript/src/modules/fetchTimer.ts
similarity index 100%
rename from src/modules/fetchTimer.ts
rename to packages/javascript/src/modules/fetchTimer.ts
diff --git a/src/modules/sanitizer.ts b/packages/javascript/src/modules/sanitizer.ts
similarity index 100%
rename from src/modules/sanitizer.ts
rename to packages/javascript/src/modules/sanitizer.ts
diff --git a/src/modules/socket.ts b/packages/javascript/src/modules/socket.ts
similarity index 100%
rename from src/modules/socket.ts
rename to packages/javascript/src/modules/socket.ts
diff --git a/src/modules/stackParser.ts b/packages/javascript/src/modules/stackParser.ts
similarity index 100%
rename from src/modules/stackParser.ts
rename to packages/javascript/src/modules/stackParser.ts
diff --git a/src/types/catcher-message.ts b/packages/javascript/src/types/catcher-message.ts
similarity index 100%
rename from src/types/catcher-message.ts
rename to packages/javascript/src/types/catcher-message.ts
diff --git a/src/types/event.ts b/packages/javascript/src/types/event.ts
similarity index 100%
rename from src/types/event.ts
rename to packages/javascript/src/types/event.ts
diff --git a/src/types/hawk-initial-settings.ts b/packages/javascript/src/types/hawk-initial-settings.ts
similarity index 100%
rename from src/types/hawk-initial-settings.ts
rename to packages/javascript/src/types/hawk-initial-settings.ts
diff --git a/src/types/index.ts b/packages/javascript/src/types/index.ts
similarity index 100%
rename from src/types/index.ts
rename to packages/javascript/src/types/index.ts
diff --git a/src/types/integrations.ts b/packages/javascript/src/types/integrations.ts
similarity index 100%
rename from src/types/integrations.ts
rename to packages/javascript/src/types/integrations.ts
diff --git a/src/utils/event.ts b/packages/javascript/src/utils/event.ts
similarity index 100%
rename from src/utils/event.ts
rename to packages/javascript/src/utils/event.ts
diff --git a/src/utils/id.ts b/packages/javascript/src/utils/id.ts
similarity index 100%
rename from src/utils/id.ts
rename to packages/javascript/src/utils/id.ts
diff --git a/src/utils/log.ts b/packages/javascript/src/utils/log.ts
similarity index 100%
rename from src/utils/log.ts
rename to packages/javascript/src/utils/log.ts
diff --git a/src/utils/validation.ts b/packages/javascript/src/utils/validation.ts
similarity index 100%
rename from src/utils/validation.ts
rename to packages/javascript/src/utils/validation.ts
diff --git a/packages/javascript/stats.txt b/packages/javascript/stats.txt
new file mode 100644
index 0000000..0dda1a3
--- /dev/null
+++ b/packages/javascript/stats.txt
@@ -0,0 +1,3 @@
+
+ Size: 6.76 kB with all dependencies, minified and brotlied
+
diff --git a/packages/javascript/tsconfig.json b/packages/javascript/tsconfig.json
new file mode 100644
index 0000000..d57ffc8
--- /dev/null
+++ b/packages/javascript/tsconfig.json
@@ -0,0 +1,15 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ "rootDir": "src",
+ "baseUrl": ".",
+ "paths": {
+ "@/types": ["src/types"]
+ }
+ },
+ "include": [
+ "src/**/*",
+ "src/types/*"
+ ]
+}
diff --git a/vite.config.ts b/packages/javascript/vite.config.ts
similarity index 94%
rename from vite.config.ts
rename to packages/javascript/vite.config.ts
index 2fd46d0..47fe52e 100644
--- a/vite.config.ts
+++ b/packages/javascript/vite.config.ts
@@ -1,5 +1,5 @@
import path from 'path';
-import dts from 'vite-plugin-dts'
+import dts from 'vite-plugin-dts';
import { defineConfig } from 'vite';
import license from 'rollup-plugin-license';
@@ -11,6 +11,7 @@ const VERSION = pkg.version;
/**
* Trick to use Vite server.open option on macOS
+ *
* @see https://github.com/facebook/create-react-app/pull/1690#issuecomment-283518768
*/
process.env.BROWSER = 'open';
@@ -55,7 +56,7 @@ export default defineConfig(() => {
resolve: {
alias: {
- '@/types': path.resolve(__dirname, './types'),
+ '@/types': path.resolve(__dirname, './src/types'),
},
},
@@ -69,5 +70,5 @@ export default defineConfig(() => {
tsconfigPath: './tsconfig.json',
}),
],
- }
+ };
});
diff --git a/stats.txt b/stats.txt
deleted file mode 100644
index fdd2348..0000000
--- a/stats.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Size: 7.5 KB with all dependencies, minified and gzipped
-
diff --git a/tsconfig.json b/tsconfig.json
index 9624c27..07353bb 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,23 +1,13 @@
{
- "compilerOptions" : {
+ "compilerOptions": {
"strict": false,
"strictNullChecks": true,
"sourceMap": true,
"target": "es2015",
"declaration": true,
- "outDir": "dist",
- "rootDir": "src",
"module": "NodeNext",
"moduleResolution": "nodenext",
"lib": ["dom", "es2017", "es2018"],
- "baseUrl": ".",
- "paths": {
- "@/types": ["src/types"]
- },
"allowSyntheticDefaultImports": true
- },
- "include": [
- "src/**/*",
- "src/types/*"
- ],
+ }
}