Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,25 @@
"typescript"
],
"main": "./index.node.js",
"module": "./dist/esm/index.js",
"browser": "./index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js",
"default": "./dist/index.js"
}
},
"unpkg": "./index.js",
"files": [
"index.js",
"index.d.ts",
"index.node.js",
"dist/*",
"package.json",
"README.md"
"README.md",
"dist/esm/*"
],
"dependencies": {
"@pabra/sortby": "^1.0.1",
Expand Down Expand Up @@ -57,8 +66,9 @@
"lint": "eslint src --ignore-pattern '*.test.*' --ignore-pattern '*.spec.*' --ext '.ts,.tsx'",
"typecheck": "ttsc --noEmit true --emitDeclarationOnly false",
"check-deps": "madge --extensions js,ts --circular dist",
"prepublishOnly": "yarn lint && yarn typecheck && yarn format && yarn build && yarn build:node",
"clean": "find . -name \"node_modules\" -exec rm -rf '{}' +"
"prepublishOnly": "yarn lint && yarn typecheck && yarn format && yarn build && yarn build:node && yarn build:esm",
"clean": "find . -name \"node_modules\" -exec rm -rf '{}' +",
"build:esm": "ttsc --project tsconfig.esm.json && babel src --out-dir ./dist/esm --extensions \".ts,.tsx\""
},
"devDependencies": {
"@babel/cli": "^7.5.5",
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"outDir": "./dist/esm",
"declaration": false

Check failure on line 6 in tsconfig.esm.json

View workflow job for this annotation

GitHub Actions / build

Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'.

Check failure on line 6 in tsconfig.esm.json

View workflow job for this annotation

GitHub Actions / e2e-tests (firefox)

Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'.

Check failure on line 6 in tsconfig.esm.json

View workflow job for this annotation

GitHub Actions / e2e-tests (webkit)

Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'.

Check failure on line 6 in tsconfig.esm.json

View workflow job for this annotation

GitHub Actions / e2e-tests (chromium)

Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'.
}
}
Loading