| Server IP : 13.235.167.51 / Your IP : 216.73.217.116 Web Server : Apache System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/control.machinox.in/node_modules/next/dist/lib/typescript/ |
Upload File : |
{"version":3,"sources":["../../../src/lib/typescript/type-paths.ts"],"sourcesContent":["import path from 'path'\n\n/**\n * Gets the glob patterns for type definition directories in tsconfig.\n * When isolatedDevBuild is enabled, Next.js uses different distDir paths:\n * - Development: \"{distDir}/dev\"\n * - Production: \"{distDir}\"\n */\nexport function getTypeDefinitionGlobPatterns(\n distDir: string,\n isolatedDevBuild: boolean\n): string[] {\n const distDirPosix =\n path.win32.sep === path.sep\n ? distDir.replaceAll(path.win32.sep, path.posix.sep)\n : distDir\n\n const typeGlobPatterns: string[] = [`${distDirPosix}/types/**/*.ts`]\n\n // When isolatedDevBuild is enabled, include both .next/types and .next/dev/types\n // to avoid tsconfig churn when switching between dev/build modes\n if (isolatedDevBuild) {\n typeGlobPatterns.push(\n process.env.NODE_ENV === 'development'\n ? // In dev, distDir is \"{distDir}/dev\", so also include \"{distDir}/types\"\n `${distDirPosix.replace(/\\/dev$/, '')}/types/**/*.ts`\n : // In build, distDir is \"{distDir}\", so also include \"{distDir}/dev/types\"\n `${distDirPosix}/dev/types/**/*.ts`\n )\n // Sort for consistent order\n typeGlobPatterns.sort((a, b) => a.length - b.length)\n }\n\n return typeGlobPatterns\n}\n\n/**\n * Gets the absolute path to the dev types directory for filtering during type-checking.\n * Returns null if isolatedDevBuild is disabled or in dev mode (where dev types are the main types).\n */\nexport function getDevTypesPath(\n baseDir: string,\n distDir: string,\n isolatedDevBuild: boolean\n): string | null {\n if (!isolatedDevBuild) {\n return null\n }\n\n const isDev = process.env.NODE_ENV === 'development'\n if (isDev) {\n // In dev mode, dev types are the main types, so no need to filter\n return null\n }\n\n // In build mode, dev types are at \"{baseDir}/{distDir}/dev/types\" and should be filtered\n return path.join(baseDir, distDir, 'dev', 'types')\n}\n"],"names":["getDevTypesPath","getTypeDefinitionGlobPatterns","distDir","isolatedDevBuild","distDirPosix","path","win32","sep","replaceAll","posix","typeGlobPatterns","push","process","env","NODE_ENV","replace","sort","a","b","length","baseDir","isDev","join"],"mappings":";;;;;;;;;;;;;;;IAwCgBA,eAAe;eAAfA;;IAhCAC,6BAA6B;eAA7BA;;;6DARC;;;;;;AAQV,SAASA,8BACdC,OAAe,EACfC,gBAAyB;IAEzB,MAAMC,eACJC,aAAI,CAACC,KAAK,CAACC,GAAG,KAAKF,aAAI,CAACE,GAAG,GACvBL,QAAQM,UAAU,CAACH,aAAI,CAACC,KAAK,CAACC,GAAG,EAAEF,aAAI,CAACI,KAAK,CAACF,GAAG,IACjDL;IAEN,MAAMQ,mBAA6B;QAAC,GAAGN,aAAa,cAAc,CAAC;KAAC;IAEpE,iFAAiF;IACjF,iEAAiE;IACjE,IAAID,kBAAkB;QACpBO,iBAAiBC,IAAI,CACnBC,QAAQC,GAAG,CAACC,QAAQ,KAAK,gBAErB,GAAGV,aAAaW,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC,GAErD,GAAGX,aAAa,kBAAkB,CAAC;QAEzC,4BAA4B;QAC5BM,iBAAiBM,IAAI,CAAC,CAACC,GAAGC,IAAMD,EAAEE,MAAM,GAAGD,EAAEC,MAAM;IACrD;IAEA,OAAOT;AACT;AAMO,SAASV,gBACdoB,OAAe,EACflB,OAAe,EACfC,gBAAyB;IAEzB,IAAI,CAACA,kBAAkB;QACrB,OAAO;IACT;IAEA,MAAMkB,QAAQT,QAAQC,GAAG,CAACC,QAAQ,KAAK;IACvC,IAAIO,OAAO;QACT,kEAAkE;QAClE,OAAO;IACT;IAEA,yFAAyF;IACzF,OAAOhB,aAAI,CAACiB,IAAI,CAACF,SAASlB,SAAS,OAAO;AAC5C","ignoreList":[0]}