Skip to content

Commit 0f321ac

Browse files
authored
fix(api): do not ship TS files, closes #2598 (#2645)
1 parent 8d630bc commit 0f321ac

4 files changed

Lines changed: 6 additions & 29 deletions

File tree

.changes/api-remove-ts-files.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
Remove `.ts` files on the published package.

tooling/api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"eslint-plugin-node": "11.1.0",
5959
"eslint-plugin-promise": "5.1.0",
6060
"eslint-plugin-security": "1.4.0",
61-
"fs-extra": "10.0.0",
6261
"lockfile-lint": "4.6.2",
6362
"prettier": "2.4.1",
6463
"regenerator-runtime": "0.13.9",

tooling/api/scripts/after-build.cjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// SPDX-License-Identifier: MIT
44

55
const { readFileSync, readdirSync, writeFileSync, copyFileSync } = require('fs')
6-
const { copySync } = require('fs-extra')
76

87
// append our api modules to `exports` in `package.json` then write it to `./dist`
98
const pkg = JSON.parse(readFileSync('package.json', 'utf8'))
@@ -42,6 +41,3 @@ const files = [
4241
...dir.filter((f) => f.endsWith('.md'))
4342
]
4443
files.forEach((f) => copyFileSync(f, `dist/${f}`))
45-
46-
// copy typescript src files to `./dist`
47-
copySync('src', 'dist')

tooling/api/yarn.lock

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,15 +2312,6 @@ flatted@^3.1.0:
23122312
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
23132313
integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==
23142314

2315-
fs-extra@10.0.0:
2316-
version "10.0.0"
2317-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1"
2318-
integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==
2319-
dependencies:
2320-
graceful-fs "^4.2.0"
2321-
jsonfile "^6.0.1"
2322-
universalify "^2.0.0"
2323-
23242315
fs.realpath@^1.0.0:
23252316
version "1.0.0"
23262317
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -2415,7 +2406,7 @@ globby@^11.0.1, globby@^11.0.3:
24152406
merge2 "^1.3.0"
24162407
slash "^3.0.0"
24172408

2418-
graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
2409+
graceful-fs@^4.1.2:
24192410
version "4.2.6"
24202411
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee"
24212412
integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==
@@ -2686,15 +2677,6 @@ jsonc-parser@^3.0.0:
26862677
resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.0.0.tgz#abdd785701c7e7eaca8a9ec8cf070ca51a745a22"
26872678
integrity sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==
26882679

2689-
jsonfile@^6.0.1:
2690-
version "6.1.0"
2691-
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
2692-
integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==
2693-
dependencies:
2694-
universalify "^2.0.0"
2695-
optionalDependencies:
2696-
graceful-fs "^4.1.6"
2697-
26982680
levn@^0.4.1:
26992681
version "0.4.1"
27002682
resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"
@@ -3598,11 +3580,6 @@ unicode-property-aliases-ecmascript@^1.0.4:
35983580
resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4"
35993581
integrity sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==
36003582

3601-
universalify@^2.0.0:
3602-
version "2.0.0"
3603-
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
3604-
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
3605-
36063583
uri-js@^4.2.2:
36073584
version "4.4.1"
36083585
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"

0 commit comments

Comments
 (0)