twenty 2.55.0 → 2.56.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/dist/app-template/yarn.lock +22 -22
- package/dist/app-worker.cjs +1 -1
- package/dist/chunks/application-xzYK_VZV.cjs +5 -0
- package/dist/chunks/{build-source-manifest-CS9qVNh-.cjs → build-source-manifest-CWg4z3sT.cjs} +1 -1
- package/dist/chunks/{build-source-snapshot-CpGCu13I.cjs → build-source-snapshot-CNIkoxN6.cjs} +3 -3
- package/dist/chunks/{cli-version.constant-Cu5tVcCH.cjs → cli-version.constant-CXTtLO6W.cjs} +1 -1
- package/dist/chunks/{collect-translatable-strings-DCyYBNLJ.cjs → collect-translatable-strings-Drwh6Av8.cjs} +1 -1
- package/dist/chunks/compile-application-translations-BS7FQ7zb.cjs +870 -0
- package/dist/chunks/constants-BVRtHFho-CGmbRR4M.cjs +55 -0
- package/dist/chunks/{create-http-status-error-C0btwkS0.cjs → create-http-status-error-DGznRpsu.cjs} +1 -1
- package/dist/chunks/create-metadata-client-CZSrLZOR.cjs +6 -0
- package/dist/chunks/{create-pull-base-write-anQPBDx-.cjs → create-pull-base-write-BxCvm_m8.cjs} +1 -1
- package/dist/chunks/{create-rest-client-YAG6kSAm.cjs → create-rest-client-8cQWvHwx.cjs} +1 -1
- package/dist/chunks/extract-manifest-from-file-CAbBympP.cjs +1 -0
- package/dist/chunks/{extract-source-translations-DhYrd7jw.cjs → extract-source-translations-BUR0Rc6f.cjs} +1 -1
- package/dist/chunks/{fetch-metadata-inspection-DzssW2Dw.cjs → fetch-metadata-inspection-BBWnhrft.cjs} +1 -1
- package/dist/chunks/{fetch-signed-in-identity-CId23qtn.cjs → fetch-signed-in-identity-C-qQ3udY.cjs} +1 -1
- package/dist/chunks/{fetch-workspace-or-throw-BroNuadP.cjs → fetch-workspace-or-throw-J79slzbc.cjs} +1 -1
- package/dist/chunks/{format-data-value-pZjy4e4h.cjs → format-data-value-fs3RrhMv.cjs} +1 -1
- package/dist/chunks/{format-metadata-fields-Dh6CmU5G.cjs → format-metadata-fields-9yjjSDbM.cjs} +1 -1
- package/dist/chunks/{format-metadata-owner-CCxXpga0.cjs → format-metadata-owner-BeV6-_Th.cjs} +1 -1
- package/dist/chunks/{generate-application-client-pMdNJ3g0.cjs → generate-application-client-B4yPRWWv.cjs} +1 -1
- package/dist/chunks/{get-client-generation-skip-reason-DruQtHYQ.cjs → get-client-generation-skip-reason-DTIfgD_s.cjs} +1 -1
- package/dist/chunks/{get-system-view-universal-identifier.util-BjGghzoH-Cg8Rg3uX.cjs → get-system-view-universal-identifier.util-Bq8_ovT3-CXfImcpX.cjs} +1 -1
- package/dist/chunks/global-flags.constant-EQCqyBC2.cjs +1 -0
- package/dist/chunks/{is-access-token-expiring-BcJiLtlE.cjs → is-access-token-expiring-DYNdux1L.cjs} +1 -1
- package/dist/chunks/{is-application-not-found-error-C8ifQUn8.cjs → is-application-not-found-error-AJka4bNR.cjs} +1 -1
- package/dist/chunks/is-exported-manifest-Bj0l5om_.cjs +1 -0
- package/dist/chunks/{is-valid-package-name-YNq-0I2a.cjs → is-valid-package-name-DvFQq5au.cjs} +1 -1
- package/dist/chunks/{locale-catalog-format-CFYxqgvL.cjs → locale-catalog-format-D2tDWYnc.cjs} +1 -1
- package/dist/chunks/metadata-BYjbOpo6.cjs +1 -0
- package/dist/chunks/{parse-app-export-DAfsN3RE.cjs → parse-app-export-hG8ubXTU.cjs} +1 -1
- package/dist/chunks/{parse-graphql-response-C_4SPebO.cjs → parse-graphql-response-C2la3nev.cjs} +1 -1
- package/dist/chunks/{parse-json-input-B87VP1pj.cjs → parse-json-input-DPZY9jQQ.cjs} +1 -1
- package/dist/chunks/print-typescript-value-BsjFUceV.cjs +3 -0
- package/dist/chunks/pull-minimum-sdk-version.constant-EdauMnSl.cjs +6 -0
- package/dist/chunks/pull-source-DeVIgzVE.cjs +1 -0
- package/dist/chunks/{read-app-identity-DK9znGhT.cjs → read-app-identity-D6Cp_N-A.cjs} +1 -1
- package/dist/chunks/{read-application-identifier-BXkar-mo.cjs → read-application-identifier-CR_a7oUp.cjs} +1 -1
- package/dist/chunks/{read-application-identity-D7fnqlw6.cjs → read-application-identity-CbZIanaH.cjs} +1 -1
- package/dist/chunks/{read-config-DWLaxc3C.cjs → read-config-BwRvqqhW.cjs} +1 -1
- package/dist/chunks/{read-infer-deletion-option-BrShRRHT.cjs → read-infer-deletion-option-BQJz4Jqq.cjs} +1 -1
- package/dist/chunks/read-json-object-BP1Q_W12.cjs +1 -0
- package/dist/chunks/{read-local-container-C_kAPeoE.cjs → read-local-container-CidDipKg.cjs} +1 -1
- package/dist/chunks/{read-source-identity-BXYVcnXR.cjs → read-source-identity-CDv42KDj.cjs} +1 -1
- package/dist/chunks/{record-pull-base-CkpPTblT.cjs → record-pull-base-BiVlDaBW.cjs} +1 -1
- package/dist/chunks/{record-typecheck-config-inputs-DKn7fk11.cjs → record-typecheck-config-inputs-DV3LeWK2.cjs} +1 -1
- package/dist/chunks/{request-oauth-tokens-C59XNnQs.cjs → request-oauth-tokens-DJatgiZE.cjs} +1 -1
- package/dist/chunks/{resolve-app-project-Cu1DLASA.cjs → resolve-app-project-DrRcP_gL.cjs} +1 -1
- package/dist/chunks/{resolve-command-target-DXXwJ9aE.cjs → resolve-command-target-Czttq45g.cjs} +1 -1
- package/dist/chunks/{resolve-project-typescript-Dozy60cc.cjs → resolve-project-typescript-BxIGFhr6.cjs} +1 -1
- package/dist/chunks/{resolve-source-sdk-CizL-ZLW.cjs → resolve-source-sdk-DQnc0tSq.cjs} +1 -1
- package/dist/chunks/{run-api-graphql-command-D_Gxp4_P.cjs → run-api-graphql-command-CmGTtFbD.cjs} +1 -1
- package/dist/chunks/{run-api-rest-command-Bm9KC7bB.cjs → run-api-rest-command-CnYQWgNv.cjs} +1 -1
- package/dist/chunks/run-app-add-command-o4tAyrDF.cjs +174 -0
- package/dist/chunks/{run-app-apply-command-pqnuwLNJ.cjs → run-app-apply-command-CnVUshfx.cjs} +1 -1
- package/dist/chunks/{run-app-build-command-DRslTZoC.cjs → run-app-build-command-hjBbY-k_.cjs} +1 -1
- package/dist/chunks/{run-app-dev-command-9CKFKDBQ.cjs → run-app-dev-command-Ml0sKfeA.cjs} +1 -1
- package/dist/chunks/{run-app-exec-command-Bu_SM816.cjs → run-app-exec-command-DMpczF0l.cjs} +2 -2
- package/dist/chunks/{run-app-generate-client-command-BKfbtgIG.cjs → run-app-generate-client-command-D6c8FnpJ.cjs} +1 -1
- package/dist/chunks/{run-app-init-command-BDu78coZ.cjs → run-app-init-command-XjO6SJpP.cjs} +1 -1
- package/dist/chunks/{run-app-install-command-BNpFqYXx.cjs → run-app-install-command-DlXSkmZV.cjs} +1 -1
- package/dist/chunks/{run-app-logs-command-DzQj1tdd.cjs → run-app-logs-command-IlwI3B9r.cjs} +3 -3
- package/dist/chunks/{run-app-operation-Bj0hut-D.cjs → run-app-operation-kyBLbhLr.cjs} +1 -1
- package/dist/chunks/{run-app-plan-command-CIFK-61b.cjs → run-app-plan-command-1we4YlYM.cjs} +1 -1
- package/dist/chunks/{run-app-publish-command-CuLrcX3d.cjs → run-app-publish-command-cPw8ZxuU.cjs} +1 -1
- package/dist/chunks/{run-app-pull-command-CKoe_QKd.cjs → run-app-pull-command-Douf4yQq.cjs} +3 -3
- package/dist/chunks/{run-app-translations-extract-command-riW4Ozc-.cjs → run-app-translations-extract-command-BIHvH8MO.cjs} +1 -1
- package/dist/chunks/{run-app-typecheck-command-CPDDSwEm.cjs → run-app-typecheck-command-C3z8IIuQ.cjs} +1 -1
- package/dist/chunks/{run-app-uninstall-command-DFOMGmKw.cjs → run-app-uninstall-command-BjqZ4eN7.cjs} +1 -1
- package/dist/chunks/{run-auth-login-command-DOILzUGB.cjs → run-auth-login-command-7E6YFU2x.cjs} +1 -1
- package/dist/chunks/{run-auth-logout-command-DjUjq_ug.cjs → run-auth-logout-command-BJj49Lps.cjs} +1 -1
- package/dist/chunks/{run-auth-status-command-OAibzgLu.cjs → run-auth-status-command-CEKg6671.cjs} +1 -1
- package/dist/chunks/{run-cli-BjMuvO_y.cjs → run-cli-yIhKkhUO.cjs} +3 -3
- package/dist/chunks/{run-commands-command-BhPkYc2t.cjs → run-commands-command-3PU3OrJ-.cjs} +1 -1
- package/dist/chunks/{run-data-get-command-tV2bf5h6.cjs → run-data-get-command-J8vwRqXK.cjs} +1 -1
- package/dist/chunks/{run-data-list-command-D16ADH_r.cjs → run-data-list-command-B4mffvAw.cjs} +1 -1
- package/dist/chunks/{run-doctor-command-CEFSxor5.cjs → run-doctor-command-CGAJlZ8M.cjs} +2 -2
- package/dist/chunks/{run-local-logs-command-CkDxKsj7.cjs → run-local-logs-command-DYNNZaAA.cjs} +1 -1
- package/dist/chunks/{run-local-reset-command-pPzlL7jd.cjs → run-local-reset-command-txQMpX4Y.cjs} +1 -1
- package/dist/chunks/{run-local-start-command-B_vDDsVi.cjs → run-local-start-command-DMqvXuI8.cjs} +1 -1
- package/dist/chunks/{run-local-status-command-CKh4246H.cjs → run-local-status-command-JakSWQH2.cjs} +1 -1
- package/dist/chunks/{run-local-stop-command-BWJbZxK2.cjs → run-local-stop-command-CKzb8k8I.cjs} +1 -1
- package/dist/chunks/{run-local-upgrade-command-CFDAkOsj.cjs → run-local-upgrade-command-BxhahQIt.cjs} +1 -1
- package/dist/chunks/{run-metadata-field-describe-command-D7q8KpLp.cjs → run-metadata-field-describe-command-C8NDfCQv.cjs} +1 -1
- package/dist/chunks/{run-metadata-field-list-command-yLteJu7m.cjs → run-metadata-field-list-command-Dq8JWMNS.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-describe-command-CHKnSf0E.cjs → run-metadata-object-describe-command-BeyWRTEV.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-list-command-D8CLvav9.cjs → run-metadata-object-list-command-CSCOKM3y.cjs} +1 -1
- package/dist/chunks/{run-open-command-CyBcIK9P.cjs → run-open-command-DWajZfpf.cjs} +1 -1
- package/dist/chunks/{run-remote-list-command-WKiOwCbu.cjs → run-remote-list-command-BSOS3z6p.cjs} +1 -1
- package/dist/chunks/{run-remote-remove-command-DPKQXI17.cjs → run-remote-remove-command-B485SDzS.cjs} +1 -1
- package/dist/chunks/{run-remote-rename-command-CwuCickV.cjs → run-remote-rename-command-6uSnN2c_.cjs} +1 -1
- package/dist/chunks/{run-remote-use-command-BlB3SFV7.cjs → run-remote-use-command-DyUpoMX7.cjs} +1 -1
- package/dist/chunks/{run-version-command-BuWJdr6h.cjs → run-version-command-BvTg8tp9.cjs} +1 -1
- package/dist/chunks/{select-target-DiY6zT7M.cjs → select-target-g9eHGzvk.cjs} +1 -1
- package/dist/chunks/{sign-in-to-remote-again-DalF_h0k.cjs → sign-in-to-remote-again-m84b1K-f.cjs} +1 -1
- package/dist/chunks/{sign-in-with-browser-B2nBTir7.cjs → sign-in-with-browser-PLGwMTwd.cjs} +1 -1
- package/dist/chunks/{to-worker-output-diagnostics-CUKNJ_L6.cjs → to-worker-output-diagnostics-BrOMgkAW.cjs} +1 -1
- package/dist/chunks/{typecheck-application-BcS7ldNI.cjs → typecheck-application-rMuH9bYM.cjs} +1 -1
- package/dist/chunks/{update-config-D63n0BNZ.cjs → update-config-D0Y-TAiW.cjs} +1 -1
- package/dist/chunks/{utils-BJdjZ6I2-DgqSVlwy.cjs → utils-BZkF-gp5-DunD-YmD.cjs} +2 -2
- package/dist/chunks/{wait-for-local-environment-j4IZq_Nn.cjs → wait-for-local-environment-B1bVbQGm.cjs} +1 -1
- package/dist/chunks/{write-config-atomically-CkC-GT16.cjs → write-config-atomically-BheBtCVO.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/package.json +2 -2
- package/src/app/add/README.md +6 -6
- package/src/app/pull/README.md +1 -1
- package/dist/chunks/application-ChMyraCB.cjs +0 -5
- package/dist/chunks/compile-application-translations-Bp686pj4.cjs +0 -870
- package/dist/chunks/constants-BF6GWIop-98tUMN2U.cjs +0 -55
- package/dist/chunks/create-metadata-client-FcJiT9Hx.cjs +0 -6
- package/dist/chunks/extract-manifest-from-file-DA5fSI0W.cjs +0 -1
- package/dist/chunks/global-flags.constant-BU7HyPk3.cjs +0 -1
- package/dist/chunks/is-exported-manifest-mJcgLfg0.cjs +0 -1
- package/dist/chunks/metadata-Cu3_OTI1.cjs +0 -1
- package/dist/chunks/print-typescript-value-ChOUZ7Mm.cjs +0 -3
- package/dist/chunks/pull-minimum-sdk-version.constant-Dm7g3dNP.cjs +0 -5
- package/dist/chunks/pull-source-DvVJhvaO.cjs +0 -1
- package/dist/chunks/read-json-object-B5Q55dbM.cjs +0 -1
- package/dist/chunks/run-app-add-command-BcuwnGCB.cjs +0 -163
|
@@ -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-BVRtHFho-CGmbRR4M.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.i(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.i(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.i(e)||!(0,d.isString)(e.buildId)||!f(e.directory)||!(0,d.isString)(e.contentHash)||!n.i(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.i(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.i(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.i(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.i(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.i(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.i(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-BcS7ldNI.cjs → typecheck-application-rMuH9bYM.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-BxIGFhr6.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-BwRvqqhW.cjs"),t=require("./write-config-atomically-BheBtCVO.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}});
|