Skip to content

Commit f8f47b8

Browse files
committed
ESM Support
1 parent 1ebb7e0 commit f8f47b8

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

package.json

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
{
22
"name": "graphql-scalars",
3-
"version": "1.9.3",
3+
"version": "1.10.0",
44
"description": "A collection of scalar types not included in base GraphQL.",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/Urigo/graphql-scalars.git"
88
},
99
"sideEffects": false,
10-
"main": "dist/index.cjs.js",
11-
"module": "dist/index.esm.js",
10+
"main": "dist/index.js",
11+
"module": "dist/index.mjs",
1212
"typings": "dist/index.d.ts",
1313
"typescript": {
1414
"definition": "dist/index.d.ts"
1515
},
16+
"exports": {
17+
".": {
18+
"require": "./dist/index.js",
19+
"import": "./dist/index.mjs"
20+
},
21+
"./*": {
22+
"require": "./dist/*.js",
23+
"import": "./dist/*.mjs"
24+
}
25+
},
1626
"license": "MIT",
1727
"jest": {
1828
"roots": [
@@ -47,7 +57,7 @@
4757
"@types/node": "14.17.3",
4858
"@typescript-eslint/eslint-plugin": "4.26.1",
4959
"@typescript-eslint/parser": "4.26.1",
50-
"bob-the-bundler": "1.2.1",
60+
"bob-the-bundler": "1.4.0",
5161
"eslint": "7.28.0",
5262
"eslint-config-prettier": "8.3.0",
5363
"eslint-config-standard": "16.0.3",

yarn.lock

+10-4
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,11 @@
15951595
"@typescript-eslint/types" "4.26.1"
15961596
eslint-visitor-keys "^2.0.0"
15971597

1598+
"@vercel/ncc@0.28.3":
1599+
version "0.28.3"
1600+
resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.28.3.tgz#9461bdbf334d616759b0e7e5415e2f480b9aa30f"
1601+
integrity sha512-g3gk4D9itbhUQa5MtN7TOdeoQnNLkPDCox5SBaQ/H3Or5lo59TOaZWrLb+x47StiAJ+8DXZS/9MJ67cIBWSsRw==
1602+
15981603
abab@^2.0.3, abab@^2.0.5:
15991604
version "2.0.5"
16001605
resolved "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
@@ -1859,12 +1864,13 @@ bl@^2.2.1:
18591864
readable-stream "^2.3.5"
18601865
safe-buffer "^5.1.1"
18611866

1862-
bob-the-bundler@1.2.1:
1863-
version "1.2.1"
1864-
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-1.2.1.tgz#ed759de2ac59f5bda71cb625d17f1cd787984e4e"
1865-
integrity sha512-mrmiqX10ghyMB6v4T/VXjmhQie8xrqoOCWZ0b3N8JmTqnzYpOZbSw9UaAygxGzg4V2hjwTz0Wl7H1GlXQnawVA==
1867+
bob-the-bundler@1.4.0:
1868+
version "1.4.0"
1869+
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-1.4.0.tgz#5c712cb03552229aa230bde19db99250924023b8"
1870+
integrity sha512-E2HXGLb5Gt2N05CejilWLjxotiXFTrjiZUFgCZON9JgoJOiAMavZmYLUbp85sBZ/ftWq81Llyz/ByjU0Ftd9mQ==
18661871
dependencies:
18671872
"@rollup/plugin-node-resolve" "7.1.1"
1873+
"@vercel/ncc" "0.28.3"
18681874
builtins "4.0.0"
18691875
consola "2.11.3"
18701876
cosmiconfig "6.0.0"

0 commit comments

Comments
 (0)