Skip to content

Commit 2a1b447

Browse files
authored
Publish TS types with domain sharding package (#291)
1 parent 878d5a6 commit 2a1b447

File tree

2 files changed

+15
-28
lines changed

2 files changed

+15
-28
lines changed

packages/utils/domain-sharding/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@
44
"license": "(MIT OR Apache-2.0)",
55
"source": "src/index.js",
66
"main": "lib/index.js",
7+
"types": "lib/index.d.ts",
78
"publishConfig": {
89
"access": "public"
910
},
1011
"repository": {
1112
"type": "git",
1213
"url": "https://github.com/atlassian-labs/atlaspack.git"
1314
},
15+
"scripts": {
16+
"build-ts": "tsc src/index.js --allowJs --declaration --emitDeclarationOnly --outDir lib"
17+
},
1418
"engines": {
1519
"atlaspack": "^2.12.0",
1620
"node": ">= 16.0.0"
21+
},
22+
"devDependencies": {
23+
"typescript": "^4.4.3"
1724
}
1825
}

yarn.lock

+8-28
Original file line numberDiff line numberDiff line change
@@ -14916,7 +14916,7 @@ string-natural-compare@^3.0.1:
1491614916
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
1491714917
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
1491814918

14919-
"string-width-cjs@npm:string-width@^4.2.0":
14919+
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1492014920
version "4.2.3"
1492114921
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1492214922
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -14942,15 +14942,6 @@ string-width@^1.0.1, string-width@^1.0.2:
1494214942
is-fullwidth-code-point "^2.0.0"
1494314943
strip-ansi "^4.0.0"
1494414944

14945-
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
14946-
version "4.2.3"
14947-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
14948-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
14949-
dependencies:
14950-
emoji-regex "^8.0.0"
14951-
is-fullwidth-code-point "^3.0.0"
14952-
strip-ansi "^6.0.1"
14953-
1495414945
string-width@^5.0.1, string-width@^5.1.2:
1495514946
version "5.1.2"
1495614947
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
@@ -15038,7 +15029,7 @@ stringify-object@^3.3.0:
1503815029
is-obj "^1.0.1"
1503915030
is-regexp "^1.0.0"
1504015031

15041-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
15032+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1504215033
version "6.0.1"
1504315034
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1504415035
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -15059,13 +15050,6 @@ strip-ansi@^4.0.0:
1505915050
dependencies:
1506015051
ansi-regex "^3.0.0"
1506115052

15062-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
15063-
version "6.0.1"
15064-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
15065-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
15066-
dependencies:
15067-
ansi-regex "^5.0.1"
15068-
1506915053
strip-ansi@^7.0.1, strip-ansi@^7.1.0:
1507015054
version "7.1.0"
1507115055
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -15811,6 +15795,11 @@ typescript@>=3.0.0, typescript@^5.5.4, typescript@^5.6.2:
1581115795
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0"
1581215796
integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==
1581315797

15798+
typescript@^4.4.3:
15799+
version "4.9.5"
15800+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
15801+
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
15802+
1581415803
uc.micro@^1.0.1, uc.micro@^1.0.5:
1581515804
version "1.0.6"
1581615805
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
@@ -16587,7 +16576,7 @@ [email protected]:
1658716576
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.1.0.tgz#a8e038b4c94569596852de7a8ea4228eefdeb37b"
1658816577
integrity sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg==
1658916578

16590-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
16579+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
1659116580
version "7.0.0"
1659216581
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1659316582
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -16613,15 +16602,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
1661316602
string-width "^4.1.0"
1661416603
strip-ansi "^6.0.0"
1661516604

16616-
wrap-ansi@^7.0.0:
16617-
version "7.0.0"
16618-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
16619-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
16620-
dependencies:
16621-
ansi-styles "^4.0.0"
16622-
string-width "^4.1.0"
16623-
strip-ansi "^6.0.0"
16624-
1662516605
wrap-ansi@^8.1.0:
1662616606
version "8.1.0"
1662716607
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)