added post build tool

This commit is contained in:
12inchpenguin 2025-04-06 18:19:03 +03:00
parent ef4be50b5a
commit a667f98f25
2 changed files with 60 additions and 1 deletions

View File

@ -11,7 +11,7 @@
"types.d.ts"
],
"scripts": {
"build": "tsc",
"build": "tsc && tsc-esm-fix --outDir=./dist/esm",
"dev": "tsc -w",
"clean": "rimraf dist",
"prepublishOnly": "npm run clean && npm run build",
@ -63,6 +63,7 @@
"lint-staged": "^15.5.0",
"prettier": "^3.5.3",
"rimraf": "^5.0.5",
"tsc-esm-fix": "^3.1.2",
"typescript": "^5.8.2"
},
"compilerOptions": {

58
pnpm-lock.yaml generated
View File

@ -96,6 +96,9 @@ importers:
rimraf:
specifier: ^5.0.5
version: 5.0.10
tsc-esm-fix:
specifier: ^3.1.2
version: 3.1.2
typescript:
specifier: ^5.8.2
version: 5.8.2
@ -1163,6 +1166,10 @@ packages:
'@sinonjs/fake-timers@10.3.0':
resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==}
'@topoconfig/extends@0.16.2':
resolution: {integrity: sha512-sTF+qpWakr5jf1Hn/kkFSi833xPW15s/loMAiKSYSSVv4vDonxf6hwCGzMXjLq+7HZoaK6BgaV72wXr1eY7FcQ==}
hasBin: true
'@types/babel__core@7.20.5':
resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
@ -1674,6 +1681,9 @@ packages:
resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
engines: {node: '>= 0.8'}
depseek@0.4.1:
resolution: {integrity: sha512-YYfPPajzH9s2qnEva411VJzCMWtArBTfluI9USiKQ+T6xBWFh3C7yPxhaa1KVgJa17v9aRKc+LcRhgxS5/9mOA==}
destroy@1.2.0:
resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
@ -1897,6 +1907,10 @@ packages:
fs-constants@1.0.0:
resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}
fs-extra@11.3.0:
resolution: {integrity: sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==}
engines: {node: '>=14.14'}
fs.realpath@1.0.0:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
@ -2350,6 +2364,9 @@ packages:
engines: {node: '>=6'}
hasBin: true
jsonfile@6.1.0:
resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
kind-of@6.0.3:
resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
engines: {node: '>=0.10.0'}
@ -3296,6 +3313,11 @@ packages:
truncate-utf8-bytes@1.0.2:
resolution: {integrity: sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==}
tsc-esm-fix@3.1.2:
resolution: {integrity: sha512-1/OpZssMcEp2ae6DyZV+yvDviofuCdDf7dEWEaBvm/ac8vtS04lFyl0LVs8LQE56vjKHytgzVjPIL9udM4QuNg==}
engines: {node: '>=18.0.0'}
hasBin: true
tslib@1.14.1:
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
@ -3317,6 +3339,9 @@ packages:
resolution: {integrity: sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==}
engines: {node: '>=8'}
type-flag@3.0.0:
resolution: {integrity: sha512-3YaYwMseXCAhBB14RXW5cRQfJQlEknS6i4C8fCfeUdS3ihG9EdccdR9kt3vP73ZdeTGmPb4bZtkDn5XMIn1DLA==}
type-is@2.0.1:
resolution: {integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==}
engines: {node: '>= 0.6'}
@ -3358,6 +3383,10 @@ packages:
resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==}
engines: {node: '>=4'}
universalify@2.0.1:
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
unpipe@1.0.0:
resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
engines: {node: '>= 0.8'}
@ -5402,6 +5431,8 @@ snapshots:
dependencies:
'@sinonjs/commons': 3.0.1
'@topoconfig/extends@0.16.2': {}
'@types/babel__core@7.20.5':
dependencies:
'@babel/parser': 7.27.0
@ -6012,6 +6043,8 @@ snapshots:
depd@2.0.0: {}
depseek@0.4.1: {}
destroy@1.2.0: {}
detect-browser@5.3.0: {}
@ -6241,6 +6274,12 @@ snapshots:
fs-constants@1.0.0: {}
fs-extra@11.3.0:
dependencies:
graceful-fs: 4.2.11
jsonfile: 6.1.0
universalify: 2.0.1
fs.realpath@1.0.0: {}
fsevents@2.3.3:
@ -6775,6 +6814,12 @@ snapshots:
json5@2.2.3: {}
jsonfile@6.1.0:
dependencies:
universalify: 2.0.1
optionalDependencies:
graceful-fs: 4.2.11
kind-of@6.0.3: {}
kuler@2.0.0: {}
@ -7878,6 +7923,15 @@ snapshots:
dependencies:
utf8-byte-length: 1.0.5
tsc-esm-fix@3.1.2:
dependencies:
'@topoconfig/extends': 0.16.2
depseek: 0.4.1
fast-glob: 3.3.3
fs-extra: 11.3.0
json5: 2.2.3
type-flag: 3.0.0
tslib@1.14.1: {}
tslib@2.8.1: {}
@ -7894,6 +7948,8 @@ snapshots:
type-fest@0.7.1: {}
type-flag@3.0.0: {}
type-is@2.0.1:
dependencies:
content-type: 1.0.5
@ -7930,6 +7986,8 @@ snapshots:
unicode-property-aliases-ecmascript@2.1.0: {}
universalify@2.0.1: {}
unpipe@1.0.0: {}
update-browserslist-db@1.1.3(browserslist@4.24.4):