twenty 2.54.3 → 2.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +1 -0
- package/dist/app-template/example/files/AGENTS.md +1 -1
- package/dist/app-template/yarn.lock +99 -99
- package/dist/app-worker.cjs +1 -1
- package/dist/chunks/application-ChMyraCB.cjs +5 -0
- package/dist/chunks/{build-source-manifest-BJyDykpG.cjs → build-source-manifest-CS9qVNh-.cjs} +1 -1
- package/dist/chunks/build-source-snapshot-CpGCu13I.cjs +26 -0
- package/dist/chunks/check-node-requirement-CIDuA1s-.cjs +1 -0
- package/dist/chunks/{cli-version.constant-BRiLR-nG.cjs → cli-version.constant-Cu5tVcCH.cjs} +1 -1
- package/dist/chunks/{collect-translatable-strings-BWzloBoB.cjs → collect-translatable-strings-DCyYBNLJ.cjs} +1 -1
- package/dist/chunks/compile-application-translations-Bp686pj4.cjs +870 -0
- package/dist/chunks/{constants-Cbb71hpl-CrSqydxj.cjs → constants-BF6GWIop-98tUMN2U.cjs} +1 -1
- package/dist/chunks/{create-http-status-error-CSxveq4d.cjs → create-http-status-error-C0btwkS0.cjs} +1 -1
- package/dist/chunks/create-metadata-client-FcJiT9Hx.cjs +6 -0
- package/dist/chunks/{create-pull-base-write-BAapBdLz.cjs → create-pull-base-write-anQPBDx-.cjs} +1 -1
- package/dist/chunks/{create-rest-client-eb80-tts.cjs → create-rest-client-YAG6kSAm.cjs} +1 -1
- package/dist/chunks/extract-manifest-from-file-DA5fSI0W.cjs +1 -0
- package/dist/chunks/{extract-source-translations-BHy14v8o.cjs → extract-source-translations-DhYrd7jw.cjs} +1 -1
- package/dist/chunks/{fetch-metadata-inspection-IuAwjjQT.cjs → fetch-metadata-inspection-DzssW2Dw.cjs} +1 -1
- package/dist/chunks/{fetch-signed-in-identity-BFxRufRI.cjs → fetch-signed-in-identity-CId23qtn.cjs} +1 -1
- package/dist/chunks/{fetch-workspace-or-throw-CgPc8IBL.cjs → fetch-workspace-or-throw-BroNuadP.cjs} +1 -1
- package/dist/chunks/{format-data-value-Cln0Hv7L.cjs → format-data-value-pZjy4e4h.cjs} +1 -1
- package/dist/chunks/{format-metadata-fields-BltFjIsO.cjs → format-metadata-fields-Dh6CmU5G.cjs} +1 -1
- package/dist/chunks/{format-metadata-owner-DpOc_B3P.cjs → format-metadata-owner-CCxXpga0.cjs} +1 -1
- package/dist/chunks/{generate-application-client-CL8nm0q9.cjs → generate-application-client-pMdNJ3g0.cjs} +1 -1
- package/dist/chunks/{get-client-generation-skip-reason-BJFlVAos.cjs → get-client-generation-skip-reason-DruQtHYQ.cjs} +1 -1
- package/dist/chunks/get-engine-version-range-DZGIWoR6.cjs +1 -0
- package/dist/chunks/get-local-status-D52rgA2e.cjs +1 -0
- package/dist/chunks/{get-system-view-universal-identifier.util-C31V-2Dl-Cm-ouuA6.cjs → get-system-view-universal-identifier.util-BjGghzoH-Cg8Rg3uX.cjs} +1 -1
- package/dist/chunks/global-flags.constant-BU7HyPk3.cjs +1 -0
- package/dist/chunks/has-yarn-plug-and-play-BGlTmmrM.cjs +1 -0
- package/dist/chunks/{is-access-token-expiring-B3WtsewG.cjs → is-access-token-expiring-BcJiLtlE.cjs} +1 -1
- package/dist/chunks/{is-application-not-found-error-BC7jyU0p.cjs → is-application-not-found-error-C8ifQUn8.cjs} +1 -1
- package/dist/chunks/is-exported-manifest-mJcgLfg0.cjs +1 -0
- package/dist/chunks/is-valid-package-name-YNq-0I2a.cjs +1 -0
- package/dist/chunks/list-ancestor-directories-BtB2hNt6.cjs +1 -0
- package/dist/chunks/{locale-catalog-format-C_5EGBEn.cjs → locale-catalog-format-CFYxqgvL.cjs} +1 -1
- package/dist/chunks/ltr-BS5BTFWS.cjs +1 -0
- package/dist/chunks/max-satisfying-BNYDQrne.cjs +1 -0
- package/dist/chunks/metadata-Cu3_OTI1.cjs +1 -0
- package/dist/chunks/{metadata-page.constant-7kxmFenL.cjs → metadata-page.constant-qMNOJLjJ.cjs} +1 -1
- package/dist/chunks/{parse-app-export-CpZxFIlO.cjs → parse-app-export-DAfsN3RE.cjs} +1 -1
- package/dist/chunks/parse-graphql-response-C_4SPebO.cjs +1 -0
- package/dist/chunks/{parse-json-input-kEwLo8mG.cjs → parse-json-input-B87VP1pj.cjs} +1 -1
- package/dist/chunks/pull-minimum-sdk-version.constant-Dm7g3dNP.cjs +5 -0
- package/dist/chunks/{pull-source-CpAYRk5s.cjs → pull-source-DvVJhvaO.cjs} +1 -1
- package/dist/chunks/{read-app-identity-CJZThpUC.cjs → read-app-identity-DK9znGhT.cjs} +1 -1
- package/dist/chunks/{read-application-identifier-D6YPuiA7.cjs → read-application-identifier-BXkar-mo.cjs} +1 -1
- package/dist/chunks/{read-application-identity-CWSIB1Jd.cjs → read-application-identity-D7fnqlw6.cjs} +1 -1
- package/dist/chunks/read-bounded-body-BHRu5J2Y.cjs +1 -0
- package/dist/chunks/{read-config-9Dv5cmvw.cjs → read-config-DWLaxc3C.cjs} +1 -1
- package/dist/chunks/{read-infer-deletion-option-DtCw0TsU.cjs → read-infer-deletion-option-BrShRRHT.cjs} +1 -1
- package/dist/chunks/read-json-object-B5Q55dbM.cjs +1 -0
- package/dist/chunks/read-local-container-C_kAPeoE.cjs +1 -0
- package/dist/chunks/read-snapshot-file-BPLzlSH_.cjs +1 -0
- package/dist/chunks/{read-source-identity-BQ_YGISo.cjs → read-source-identity-BXYVcnXR.cjs} +1 -1
- package/dist/chunks/{record-pull-base-BIlU7Fj1.cjs → record-pull-base-CkpPTblT.cjs} +1 -1
- package/dist/chunks/{record-typecheck-config-inputs-BGVirGsR.cjs → record-typecheck-config-inputs-DKn7fk11.cjs} +1 -1
- package/dist/chunks/{request-oauth-tokens-BkL-WsAM.cjs → request-oauth-tokens-C59XNnQs.cjs} +1 -1
- package/dist/chunks/resolve-app-project-Cu1DLASA.cjs +1 -0
- package/dist/chunks/{resolve-command-target-C4r6LuWk.cjs → resolve-command-target-DXXwJ9aE.cjs} +1 -1
- package/dist/chunks/{resolve-metadata-object-C3sDavWu.cjs → resolve-metadata-object-xK90Ursp.cjs} +1 -1
- package/dist/chunks/resolve-project-typescript-Dozy60cc.cjs +1 -0
- package/dist/chunks/resolve-request-url-I1EOOumy.cjs +1 -0
- package/dist/chunks/resolve-source-sdk-CizL-ZLW.cjs +1 -0
- package/dist/chunks/{run-api-graphql-command-D-Pu9EdU.cjs → run-api-graphql-command-D_Gxp4_P.cjs} +1 -1
- package/dist/chunks/{run-api-rest-command-BuDANSQa.cjs → run-api-rest-command-Bm9KC7bB.cjs} +1 -1
- package/dist/chunks/{run-app-add-command-C0b2LVQN.cjs → run-app-add-command-BcuwnGCB.cjs} +4 -4
- package/dist/chunks/{run-app-apply-command-CilkY9ws.cjs → run-app-apply-command-pqnuwLNJ.cjs} +1 -1
- package/dist/chunks/{run-app-build-command-DaKa_eKF.cjs → run-app-build-command-DRslTZoC.cjs} +1 -1
- package/dist/chunks/{run-app-dev-command-BnSJIUgg.cjs → run-app-dev-command-9CKFKDBQ.cjs} +1 -1
- package/dist/chunks/{run-app-exec-command-BPlfFt9-.cjs → run-app-exec-command-Bu_SM816.cjs} +2 -2
- package/dist/chunks/{run-app-generate-client-command-7t5Hs10P.cjs → run-app-generate-client-command-BKfbtgIG.cjs} +1 -1
- package/dist/chunks/{run-app-init-command-DhPC_GBU.cjs → run-app-init-command-BDu78coZ.cjs} +1 -1
- package/dist/chunks/{run-app-install-command-DOzp9bOL.cjs → run-app-install-command-BNpFqYXx.cjs} +1 -1
- package/dist/chunks/run-app-logs-command-DzQj1tdd.cjs +9 -0
- package/dist/chunks/{run-app-operation-BbsxjrjR.cjs → run-app-operation-Bj0hut-D.cjs} +1 -1
- package/dist/chunks/{run-app-plan-command-Bt3IwVec.cjs → run-app-plan-command-CIFK-61b.cjs} +1 -1
- package/dist/chunks/{run-app-publish-command-CoGrZA2a.cjs → run-app-publish-command-CuLrcX3d.cjs} +1 -1
- package/dist/chunks/{run-app-pull-command-gUX-w9BE.cjs → run-app-pull-command-CKoe_QKd.cjs} +2 -2
- package/dist/chunks/{run-app-translations-extract-command-LUAa7jb9.cjs → run-app-translations-extract-command-riW4Ozc-.cjs} +1 -1
- package/dist/chunks/{run-app-typecheck-command-CbHawvU8.cjs → run-app-typecheck-command-CPDDSwEm.cjs} +1 -1
- package/dist/chunks/{run-app-uninstall-command-BK-JAeo2.cjs → run-app-uninstall-command-DFOMGmKw.cjs} +1 -1
- package/dist/chunks/{run-auth-login-command-CN6Xqgpx.cjs → run-auth-login-command-DOILzUGB.cjs} +1 -1
- package/dist/chunks/{run-auth-logout-command-Dw6CLfIY.cjs → run-auth-logout-command-DjUjq_ug.cjs} +1 -1
- package/dist/chunks/{run-auth-status-command-CXRrXjvh.cjs → run-auth-status-command-OAibzgLu.cjs} +1 -1
- package/dist/chunks/{run-cli-CsDjb96b.cjs → run-cli-BjMuvO_y.cjs} +5 -5
- package/dist/chunks/{run-commands-command-CLTVI96u.cjs → run-commands-command-BhPkYc2t.cjs} +1 -1
- package/dist/chunks/{run-data-get-command-BD7i13MO.cjs → run-data-get-command-tV2bf5h6.cjs} +1 -1
- package/dist/chunks/{run-data-list-command-tcCgbeZj.cjs → run-data-list-command-D16ADH_r.cjs} +1 -1
- package/dist/chunks/{run-doctor-command-CDKbN2os.cjs → run-doctor-command-CEFSxor5.cjs} +2 -2
- package/dist/chunks/run-local-logs-command-CkDxKsj7.cjs +1 -0
- package/dist/chunks/run-local-reset-command-pPzlL7jd.cjs +2 -0
- package/dist/chunks/run-local-start-command-B_vDDsVi.cjs +1 -0
- package/dist/chunks/run-local-status-command-CKh4246H.cjs +1 -0
- package/dist/chunks/run-local-stop-command-BWJbZxK2.cjs +1 -0
- package/dist/chunks/run-local-upgrade-command-CFDAkOsj.cjs +1 -0
- package/dist/chunks/{run-metadata-field-describe-command-BX5_s1m0.cjs → run-metadata-field-describe-command-D7q8KpLp.cjs} +1 -1
- package/dist/chunks/{run-metadata-field-list-command-BVFDiJv2.cjs → run-metadata-field-list-command-yLteJu7m.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-describe-command-CWYI0V42.cjs → run-metadata-object-describe-command-CHKnSf0E.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-list-command-Y3yebZrT.cjs → run-metadata-object-list-command-D8CLvav9.cjs} +1 -1
- package/dist/chunks/{run-open-command-BUEQSKSk.cjs → run-open-command-CyBcIK9P.cjs} +1 -1
- package/dist/chunks/{run-remote-list-command-BExGjyKO.cjs → run-remote-list-command-WKiOwCbu.cjs} +1 -1
- package/dist/chunks/{run-remote-remove-command-D2thQnCU.cjs → run-remote-remove-command-DPKQXI17.cjs} +1 -1
- package/dist/chunks/{run-remote-rename-command-DI0Adm5U.cjs → run-remote-rename-command-CwuCickV.cjs} +1 -1
- package/dist/chunks/{run-remote-use-command-CXnu5zDY.cjs → run-remote-use-command-BlB3SFV7.cjs} +1 -1
- package/dist/chunks/{run-version-command-Brk-Nbh7.cjs → run-version-command-BuWJdr6h.cjs} +1 -1
- package/dist/chunks/satisfies-Jm-ashRt.cjs +1 -0
- package/dist/chunks/{select-target-CJ2FyoVQ.cjs → select-target-DiY6zT7M.cjs} +1 -1
- package/dist/chunks/{sign-in-to-remote-again-CwXAgGif.cjs → sign-in-to-remote-again-DalF_h0k.cjs} +1 -1
- package/dist/chunks/{sign-in-with-browser-DdjoPq5d.cjs → sign-in-with-browser-B2nBTir7.cjs} +1 -1
- package/dist/chunks/{to-worker-output-diagnostics-Hj6aQiK9.cjs → to-worker-output-diagnostics-CUKNJ_L6.cjs} +1 -1
- package/dist/chunks/{typecheck-application-nkgv6qiA.cjs → typecheck-application-BcS7ldNI.cjs} +1 -1
- package/dist/chunks/{update-config-XYMqGokt.cjs → update-config-D63n0BNZ.cjs} +1 -1
- package/dist/chunks/{utils-RCpFyoX5-DF7Gq1IH.cjs → utils-BJdjZ6I2-DgqSVlwy.cjs} +2 -2
- package/dist/chunks/{valid-DnUN-PQ0.cjs → valid-BPaM0XRk.cjs} +1 -1
- package/dist/chunks/wait-for-local-environment-j4IZq_Nn.cjs +1 -0
- package/dist/chunks/{write-config-atomically-BxCEc8_P.cjs → write-config-atomically-CkC-GT16.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/docs/commands.md +63 -0
- package/package.json +2 -2
- package/dist/chunks/application-pYRHxplP.cjs +0 -5
- package/dist/chunks/build-source-snapshot-Ds_ZZGnl.cjs +0 -865
- package/dist/chunks/check-node-requirement-CnwHKQBp.cjs +0 -1
- package/dist/chunks/compile-application-translations-qdigcX2V.cjs +0 -1
- package/dist/chunks/create-metadata-client-CJRFQ20Z.cjs +0 -6
- package/dist/chunks/extract-manifest-from-file-CEK5X5YP.cjs +0 -1
- package/dist/chunks/global-flags.constant-uA1jkBmk.cjs +0 -1
- package/dist/chunks/has-yarn-plug-and-play-X3ay5Xl0.cjs +0 -1
- package/dist/chunks/is-exported-manifest-D8cwSas4.cjs +0 -1
- package/dist/chunks/is-valid-package-name-9YIecMQm.cjs +0 -1
- package/dist/chunks/metadata-CY9y5wYc.cjs +0 -1
- package/dist/chunks/parse-graphql-response-Di8aFmnF.cjs +0 -1
- package/dist/chunks/pull-minimum-sdk-version.constant-JDRwzl32.cjs +0 -5
- package/dist/chunks/read-json-object-BlyNzzdk.cjs +0 -1
- package/dist/chunks/read-snapshot-file-Dgc3WCDM.cjs +0 -1
- package/dist/chunks/resolve-app-project-DP27LYGR.cjs +0 -1
- package/dist/chunks/resolve-project-typescript-BOAxXiKm.cjs +0 -1
- package/dist/chunks/resolve-request-url-BwELN2oQ.cjs +0 -1
- package/dist/chunks/resolve-source-sdk-CyvER2l1.cjs +0 -1
- package/dist/chunks/run-app-logs-command-CQDO_gce.cjs +0 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-Dtu5EYqP-CJctgvfE.cjs"),n=require("./constants-
|
|
1
|
+
const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-Dtu5EYqP-CJctgvfE.cjs"),n=require("./constants-BF6GWIop-98tUMN2U.cjs"),r=require("./cli-error-CrUD8uMp.cjs"),i=require("./target-environment-variable.constant-D7z8AihP.cjs"),a=require("./create-cancelled-error-BBhAY8fS.cjs"),o=require("./style-BR52fK4V.cjs");let s=require("node:path"),c=require("node:fs"),l=require("node:child_process");var u=({severity:e,code:n,message:r,file:i,line:a,column:s})=>{let c=[t.t(i)?[i,a,s].filter(t.t).join(`:`):void 0,o.i(n,process.stderr),r].filter(t.t).join(` `);return e===`error`?o.a(c):o.s(c)},d=e.t(),f=e=>!t.t(e)||(0,d.isString)(e),p=e=>!t.t(e)||(0,d.isNumber)(e),m=e=>n.a(e)&&(e.severity===`error`||e.severity===`warning`)&&(0,d.isString)(e.code)&&(0,d.isString)(e.message)&&f(e.file)&&p(e.line)&&p(e.column),h=e=>n.a(e)&&(0,d.isString)(e.path)&&(0,d.isString)(e.role)&&(0,d.isString)(e.sourcePath)&&(0,d.isNumber)(e.size)&&(0,d.isString)(e.sha256),g=()=>new r.t({code:`WORKER_FAILED`,message:`The app worker returned a result this CLI cannot read.`,hint:`Check that the app and the CLI use compatible versions.`}),_=e=>{if(!(!n.a(e)||!(0,d.isString)(e.buildId)||!f(e.directory)||!(0,d.isString)(e.contentHash)||!n.a(e.application)||!(0,d.isString)(e.application.universalIdentifier)||!(0,d.isString)(e.application.name)||!(0,d.isString)(e.application.displayName)||!(0,d.isString)(e.manifestFormat)||!n.a(e.manifest)||!(0,d.isArray)(e.files)||!e.files.every(h)))return{data:{buildId:e.buildId,...(0,d.isString)(e.directory)?{directory:e.directory}:{},contentHash:e.contentHash,application:{universalIdentifier:e.application.universalIdentifier,name:e.application.name,displayName:e.application.displayName},manifestFormat:e.manifestFormat,manifest:e.manifest,files:e.files}}},v=e=>(0,d.isNull)(e)?{data:null}:void 0,y=({value:e,parseData:r})=>{if(!n.a(e)||!(0,d.isArray)(e.diagnostics)||!e.diagnostics.every(m))throw g();let i=e.diagnostics;if(e.success===!0){let n=r(e.data);if(!t.t(n))throw g();return{success:!0,data:n.data,diagnostics:i}}if(e.success===!1&&n.a(e.error)&&(0,d.isString)(e.error.code)&&(0,d.isString)(e.error.message))return{success:!1,error:{code:e.error.code,message:e.error.message,...(0,d.isString)(e.error.hint)?{hint:e.error.hint}:{},...n.a(e.error.details)?{details:e.error.details}:{}},diagnostics:i};throw g()},b={CANCEL_GRACE_MILLISECONDS:3e3,OUTPUT_LIMIT_BYTES:64*1024},x=new Set([...Object.values(i.t),`TWENTY_APP_ACCESS_TOKEN`,`TWENTY_APP_APPLICATION_ACCESS_TOKEN`]),S=/^TWENTY_.*(TOKEN|KEY|SECRET|PASSWORD)$/,C=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!x.has(e)&&!S.test(e))),w=e=>{let t=Buffer.alloc(e),n=0,r=!1;return{add:i=>{let a=i.copy(t,n,0,e-n);n+=a,r||=a<i.length},read:()=>({text:t.toString(`utf8`,0,n),isTruncated:r})}},T=()=>({modulePath:(0,s.join)((0,s.dirname)((0,c.realpathSync)(process.argv[1]??``)),`app-worker.cjs`),execArgv:[]}),E=e=>n.a(e)&&(e.type===`result`&&`result`in e&&(e.isSnapshotHeld===!0||e.isSnapshotHeld===!1)||e.type===`released`&&`release`in e||e.type===`failure`&&(0,d.isString)(e.message)&&(!t.t(e.code)||(0,d.isString)(e.code))&&(!t.t(e.hint)||(0,d.isString)(e.hint))&&(!t.t(e.details)||n.a(e.details))),D=async({request:e,signal:n,useHeldSnapshot:i})=>{n.throwIfAborted();let{modulePath:o,execArgv:s}=T(),c=(0,l.fork)(o,[],{cwd:e.appPath,env:C(process.env),execArgv:s,serialization:`json`,stdio:[`ignore`,`pipe`,`pipe`,`ipc`]}),u=w(b.OUTPUT_LIMIT_BYTES),d=w(b.OUTPUT_LIMIT_BYTES);return c.stdout?.on(`data`,u.add),c.stderr?.on(`data`,d.add),new Promise((o,s)=>{let l,f,p,m,h,g=!1,_=()=>{let e=u.read(),t=d.read();return{stdout:e.text,stderr:t.text,isTruncated:e.isTruncated||t.isTruncated}},v=e=>{c.connected&&c.send(e),h=setTimeout(()=>c.kill(`SIGKILL`),b.CANCEL_GRACE_MILLISECONDS)},y=()=>v({type:`cancel`}),x=e=>{g||(g=!0,n.removeEventListener(`abort`,y),clearTimeout(h),e())},S=e=>{n.removeEventListener(`abort`,y),clearTimeout(h),m=(t.t(i)?i({result:e.result,watchInputs:e.watchInputs,output:_()}):Promise.resolve()).then(()=>({isSuccessful:!0}),e=>({isSuccessful:!1,error:e})).finally(()=>v({type:`release`}))},C=({exitCode:e,exitSignal:i,heldOutcome:c})=>x(()=>{let u=_();if(t.t(c)&&!c.isSuccessful){s(c.error);return}if(t.t(l)){o({result:l.result,watchInputs:l.watchInputs,release:l.isSnapshotHeld?p?.release:l.release,isSnapshotHeld:l.isSnapshotHeld,output:u});return}if(n.aborted){s(a.t());return}let d=t.t(i)?`signal ${i}`:`exit code ${e}`;s(new r.t({code:`WORKER_FAILED`,message:t.t(f)?`The app worker failed: ${f.message}`:`The app worker stopped before finishing (${d}). App code or a dependency may have exited the process.`,hint:f?.hint,details:{...f?.details,workerErrorCode:f?.code,exitCode:e,signal:i,output:u}}))});n.addEventListener(`abort`,y,{once:!0}),c.on(`message`,e=>{if(E(e)){if(e.type===`released`){p=e;return}if(e.type===`failure`){f=e;return}l=e,e.isSnapshotHeld&&S(e)}}),c.on(`error`,e=>x(()=>s(new r.t({code:`WORKER_FAILED`,message:`The app worker could not run: ${e.message}`})))),c.on(`close`,(e,n)=>{if(!t.t(m)){C({exitCode:e,exitSignal:n});return}m.then(t=>C({exitCode:e,exitSignal:n,heldOutcome:t})).catch(e=>x(()=>s(e)))}),c.send(e)})},O=e=>[[`stdout`,e.stdout],[`stderr`,e.stderr]].filter(([,e])=>(0,d.isNonEmptyString)(e.trim())).map(([t,n])=>({severity:`warning`,code:`PROJECT_OUTPUT`,message:`The app or twenty-sdk wrote to ${t}:\n${n.trimEnd()}${e.isTruncated?`
|
|
2
2
|
(output truncated)`:``}`}));Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return O}});
|
package/dist/chunks/{typecheck-application-nkgv6qiA.cjs → typecheck-application-BcS7ldNI.cjs}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./isDefined-Dtu5EYqP-CJctgvfE.cjs"),n=require("./validate-app-path-Dau-PC0a.cjs"),r=require("./collect-watch-inputs-Dn6g1cNu.cjs"),i=require("./resolve-project-typescript-
|
|
1
|
+
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./isDefined-Dtu5EYqP-CJctgvfE.cjs"),n=require("./validate-app-path-Dau-PC0a.cjs"),r=require("./collect-watch-inputs-Dn6g1cNu.cjs"),i=require("./resolve-project-typescript-Dozy60cc.cjs"),a=require("./cli-error-CrUD8uMp.cjs"),o=require("./get-tooling-error-context-CZKTM7Q6.cjs");let s=require("node:path");var c=e.n({typecheckApplication:()=>d}),l=({diagnostic:e,appPath:n,typescript:r})=>{let i=t.t(e.file)&&t.t(e.start)?e.file.getLineAndCharacterOfPosition(e.start):void 0;return{severity:e.category===r.DiagnosticCategory.Warning?`warning`:`error`,code:`TS${e.code}`,message:r.flattenDiagnosticMessageText(e.messageText,`
|
|
2
2
|
`),...t.t(e.file)?{file:(0,s.relative)(n,e.file.fileName)}:{},...t.t(i)?{line:i.line+1,column:i.character+1}:{}}},u=({appPath:e,typescript:n})=>{let i=(0,s.join)(e,`tsconfig.json`),a=(e,t)=>(r.r(e),n.sys.readFile(e,t)),o=n.readConfigFile(i,a);if(t.t(o.error))return[o.error];let c=n.parseJsonConfigFileContent(o.config,{...n.sys,readFile:a},e,{noEmit:!0},i);if(c.errors.length>0)return c.errors;let l=n.createCompilerHost(c.options),u=l.readFile;l.readFile=e=>(r.r(e),u(e));let d=l.fileExists;l.fileExists=e=>{let t=d(e);return t||r.i(e),t};let f=n.createProgram({host:l,rootNames:c.fileNames,options:c.options,projectReferences:c.projectReferences});return n.getPreEmitDiagnostics(f)},d=async({appPath:e,signal:t})=>{let r=await n.t(e);if(!r.success)return r;try{t?.throwIfAborted();let n=await i.t(e);t?.throwIfAborted();let r=u({appPath:e,typescript:n});t?.throwIfAborted();let a=r.map(t=>l({diagnostic:t,appPath:e,typescript:n}));return a.some(e=>e.severity===`error`)?{success:!1,error:{code:`TYPECHECK_FAILED`,message:`Typecheck failed.`},diagnostics:a}:{success:!0,data:null,diagnostics:a}}catch(e){return{success:!1,error:{code:t?.aborted?`CANCELLED`:e instanceof a.t?e.code:`TYPECHECK_FAILED`,message:e instanceof Error?e.message:String(e),...o.t(e)},diagnostics:[]}}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./read-config-
|
|
1
|
+
const e=require("./read-config-DWLaxc3C.cjs"),t=require("./write-config-atomically-CkC-GT16.cjs");var n=({configPath:n,signal:r,update:i})=>t.n({configPath:n,signal:r,operation:async()=>{let{config:a,result:o}=i(await e.t(n));return r.throwIfAborted(),await t.t(n,a),o}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|