@payloadcms/typescript-plugin 4.0.0-internal.016994f → 4.0.0-internal.0731f09

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.
@@ -1 +1 @@
1
- {"version":3,"file":"test-config.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/test-config.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAA"}
1
+ {"version":3,"file":"test-config.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/test-config.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA"}
@@ -1,4 +1,3 @@
1
- // @ts-ignore - ambient type declarations
2
1
  "use strict";
3
2
  Object.defineProperty(exports, "__esModule", {
4
3
  value: true
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/__tests__/fixtures/test-config.ts"],"sourcesContent":["// @ts-ignore - ambient type declarations\nimport './payload-types.d.ts'\n\nconst validField: FieldConfig = {\n name: 'test',\n type: 'text',\n admin: {\n components: {\n Field: '/components/MyField.tsx#MyField',\n Label: '/components/MyField.tsx#MyLabel',\n },\n },\n}\n\nconst invalidPath: FieldConfig = {\n name: 'broken',\n type: 'text',\n admin: {\n components: {\n Field: '/components/DoesNotExist.tsx#Nope',\n },\n },\n}\n\nconst invalidExport: FieldConfig = {\n name: 'wrongExport',\n type: 'text',\n admin: {\n components: {\n Field: '/components/MyField.tsx#WrongExport',\n },\n },\n}\n\nconst defaultExport: FieldConfig = {\n name: 'defaultExport',\n type: 'text',\n admin: {\n components: {\n Field: '/components/views/CustomView/index.tsx',\n },\n },\n}\n\nconst objectForm: FieldConfig = {\n name: 'objectForm',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'MyField',\n path: '/components/MyField.tsx',\n },\n },\n },\n}\n\nconst objectFormInvalidExport: FieldConfig = {\n name: 'objectFormBad',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'DoesNotExist',\n path: '/components/MyField.tsx',\n },\n },\n },\n}\n\nconst objectFormWithHash: FieldConfig = {\n name: 'objectFormHash',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '/components/MyField.tsx#MyField',\n },\n },\n },\n}\n\nconst objectFormDirIndex: FieldConfig = {\n name: 'objectFormDirIndex',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '/components/views/CustomView#CustomView',\n },\n },\n },\n}\n\nconst noDefaultExport: FieldConfig = {\n name: 'noDefault',\n type: 'text',\n admin: {\n components: {\n Field: '/components/icons/Icon',\n },\n },\n}\n\nconst noDefaultExportObjectForm: FieldConfig = {\n name: 'noDefaultObj',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '/components/icons/Icon',\n },\n },\n },\n}\n\nconst objectFormWithExportName: FieldConfig = {\n name: 'withExportName',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'Icon',\n path: '/components/icons/Icon',\n },\n },\n },\n}\n\nconst slashOnly: FieldConfig = {\n name: 'slashOnly',\n type: 'text',\n admin: {\n components: {\n Field: '/',\n },\n },\n}\n\nconst adminConfig: AdminConfig = {\n components: {\n actions: ['/components/MyField.tsx#MyField'],\n Nav: '/components/MyField.tsx#MyField',\n views: {\n custom: {\n Component: '/components/views/CustomView/index.tsx#CustomView',\n path: '/custom',\n },\n },\n },\n}\n"],"names":["validField","name","type","admin","components","Field","Label","invalidPath","invalidExport","defaultExport","objectForm","exportName","path","objectFormInvalidExport","objectFormWithHash","objectFormDirIndex","noDefaultExport","noDefaultExportObjectForm","objectFormWithExportName","slashOnly","adminConfig","actions","Nav","views","custom","Component"],"mappings":"AAAA,yCAAyC;;;;;QAClC;AAEP,MAAMA,aAA0B;IAC9BC,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;YACPC,OAAO;QACT;IACF;AACF;AAEA,MAAMC,cAA2B;IAC/BN,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMG,gBAA6B;IACjCP,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMI,gBAA6B;IACjCR,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMK,aAA0B;IAC9BT,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLM,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMC,0BAAuC;IAC3CZ,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLM,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAME,qBAAkC;IACtCb,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLO,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMG,qBAAkC;IACtCd,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLO,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMI,kBAA+B;IACnCf,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMY,4BAAyC;IAC7ChB,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLO,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMM,2BAAwC;IAC5CjB,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLM,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMO,YAAyB;IAC7BlB,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMe,cAA2B;IAC/BhB,YAAY;QACViB,SAAS;YAAC;SAAkC;QAC5CC,KAAK;QACLC,OAAO;YACLC,QAAQ;gBACNC,WAAW;gBACXb,MAAM;YACR;QACF;IACF;AACF"}
1
+ {"version":3,"sources":["../../../src/__tests__/fixtures/test-config.ts"],"sourcesContent":["import './payload-types.d.ts'\n\nconst validField: FieldConfig = {\n name: 'test',\n type: 'text',\n admin: {\n components: {\n Field: '/components/MyField.tsx#MyField',\n Label: '/components/MyField.tsx#MyLabel',\n },\n },\n}\n\nconst invalidPath: FieldConfig = {\n name: 'broken',\n type: 'text',\n admin: {\n components: {\n Field: '/components/DoesNotExist.tsx#Nope',\n },\n },\n}\n\nconst invalidExport: FieldConfig = {\n name: 'wrongExport',\n type: 'text',\n admin: {\n components: {\n Field: '/components/MyField.tsx#WrongExport',\n },\n },\n}\n\nconst defaultExport: FieldConfig = {\n name: 'defaultExport',\n type: 'text',\n admin: {\n components: {\n Field: '/components/views/CustomView/index.tsx',\n },\n },\n}\n\nconst objectForm: FieldConfig = {\n name: 'objectForm',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'MyField',\n path: '/components/MyField.tsx',\n },\n },\n },\n}\n\nconst objectFormInvalidExport: FieldConfig = {\n name: 'objectFormBad',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'DoesNotExist',\n path: '/components/MyField.tsx',\n },\n },\n },\n}\n\nconst objectFormWithHash: FieldConfig = {\n name: 'objectFormHash',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '/components/MyField.tsx#MyField',\n },\n },\n },\n}\n\nconst objectFormDirIndex: FieldConfig = {\n name: 'objectFormDirIndex',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '/components/views/CustomView#CustomView',\n },\n },\n },\n}\n\nconst noDefaultExport: FieldConfig = {\n name: 'noDefault',\n type: 'text',\n admin: {\n components: {\n Field: '/components/icons/Icon',\n },\n },\n}\n\nconst noDefaultExportObjectForm: FieldConfig = {\n name: 'noDefaultObj',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '/components/icons/Icon',\n },\n },\n },\n}\n\nconst objectFormWithExportName: FieldConfig = {\n name: 'withExportName',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'Icon',\n path: '/components/icons/Icon',\n },\n },\n },\n}\n\nconst slashOnly: FieldConfig = {\n name: 'slashOnly',\n type: 'text',\n admin: {\n components: {\n Field: '/',\n },\n },\n}\n\nconst adminConfig: AdminConfig = {\n components: {\n actions: ['/components/MyField.tsx#MyField'],\n Nav: '/components/MyField.tsx#MyField',\n views: {\n custom: {\n Component: '/components/views/CustomView/index.tsx#CustomView',\n path: '/custom',\n },\n },\n },\n}\n"],"names":["validField","name","type","admin","components","Field","Label","invalidPath","invalidExport","defaultExport","objectForm","exportName","path","objectFormInvalidExport","objectFormWithHash","objectFormDirIndex","noDefaultExport","noDefaultExportObjectForm","objectFormWithExportName","slashOnly","adminConfig","actions","Nav","views","custom","Component"],"mappings":";;;;QAAO;AAEP,MAAMA,aAA0B;IAC9BC,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;YACPC,OAAO;QACT;IACF;AACF;AAEA,MAAMC,cAA2B;IAC/BN,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMG,gBAA6B;IACjCP,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMI,gBAA6B;IACjCR,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMK,aAA0B;IAC9BT,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLM,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMC,0BAAuC;IAC3CZ,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLM,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAME,qBAAkC;IACtCb,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLO,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMG,qBAAkC;IACtCd,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLO,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMI,kBAA+B;IACnCf,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMY,4BAAyC;IAC7ChB,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLO,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMM,2BAAwC;IAC5CjB,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLM,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,MAAMO,YAAyB;IAC7BlB,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,MAAMe,cAA2B;IAC/BhB,YAAY;QACViB,SAAS;YAAC;SAAkC;QAC5CC,KAAK;QACLC,OAAO;YACLC,QAAQ;gBACNC,WAAW;gBACXb,MAAM;YACR;QACF;IACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"test-paths.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/test-paths.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAA"}
1
+ {"version":3,"file":"test-paths.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/test-paths.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA"}
@@ -1,4 +1,3 @@
1
- // @ts-ignore - ambient type declarations
2
1
  "use strict";
3
2
  Object.defineProperty(exports, "__esModule", {
4
3
  value: true
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/__tests__/fixtures/test-paths.ts"],"sourcesContent":["// @ts-ignore - ambient type declarations\nimport './payload-types.d.ts'\n\n// --- Valid: @/ alias with named export ---\nconst aliasNamedExport: FieldConfig = {\n name: 'aliasNamed',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon#NavIcon',\n },\n },\n}\n\n// --- Valid: @/ alias with second named export ---\nconst aliasSecondExport: FieldConfig = {\n name: 'aliasSecond',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon#NavIconSmall',\n },\n },\n}\n\n// --- Valid: @/ alias to nested path with default export ---\nconst aliasDefaultExport: FieldConfig = {\n name: 'aliasDefault',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/ui/Badge',\n },\n },\n}\n\n// --- Valid: @/ alias in object form with exportName ---\nconst aliasObjectForm: FieldConfig = {\n name: 'aliasObj',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'Badge',\n path: '@/components/ui/Badge',\n },\n },\n },\n}\n\n// --- Valid: @/ alias in object form with # in path ---\nconst aliasObjectHash: FieldConfig = {\n name: 'aliasObjHash',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '@/components/NavIcon#NavIcon',\n },\n },\n },\n}\n\n// --- Invalid: @/ alias with wrong export ---\nconst aliasWrongExport: FieldConfig = {\n name: 'aliasWrongExport',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon#DoesNotExist',\n },\n },\n}\n\n// --- Invalid: @/ alias to non-existent file ---\nconst aliasInvalidPath: FieldConfig = {\n name: 'aliasBadPath',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NotAFile#Nope',\n },\n },\n}\n\n// --- Invalid: @/ alias no default export ---\nconst aliasNoDefault: FieldConfig = {\n name: 'aliasNoDefault',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon',\n },\n },\n}\n\n// --- Invalid: @/ alias in object form with wrong exportName ---\nconst aliasObjectWrongExport: FieldConfig = {\n name: 'aliasObjWrong',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'Fake',\n path: '@/components/ui/Badge',\n },\n },\n },\n}\n\n// --- Valid: @/ alias in array context ---\nconst aliasInArray: AdminConfig = {\n components: {\n actions: ['@/components/NavIcon#NavIcon'],\n Nav: '@/components/ui/Badge#Badge',\n },\n}\n"],"names":["aliasNamedExport","name","type","admin","components","Field","aliasSecondExport","aliasDefaultExport","aliasObjectForm","exportName","path","aliasObjectHash","aliasWrongExport","aliasInvalidPath","aliasNoDefault","aliasObjectWrongExport","aliasInArray","actions","Nav"],"mappings":"AAAA,yCAAyC;;;;;QAClC;AAEP,4CAA4C;AAC5C,MAAMA,mBAAgC;IACpCC,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,mDAAmD;AACnD,MAAMC,oBAAiC;IACrCL,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,6DAA6D;AAC7D,MAAME,qBAAkC;IACtCN,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,yDAAyD;AACzD,MAAMG,kBAA+B;IACnCP,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLI,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,wDAAwD;AACxD,MAAMC,kBAA+B;IACnCV,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLK,MAAM;YACR;QACF;IACF;AACF;AAEA,8CAA8C;AAC9C,MAAME,mBAAgC;IACpCX,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,iDAAiD;AACjD,MAAMQ,mBAAgC;IACpCZ,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,8CAA8C;AAC9C,MAAMS,iBAA8B;IAClCb,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,iEAAiE;AACjE,MAAMU,yBAAsC;IAC1Cd,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLI,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,2CAA2C;AAC3C,MAAMM,eAA4B;IAChCZ,YAAY;QACVa,SAAS;YAAC;SAA+B;QACzCC,KAAK;IACP;AACF"}
1
+ {"version":3,"sources":["../../../src/__tests__/fixtures/test-paths.ts"],"sourcesContent":["import './payload-types.d.ts'\n\n// --- Valid: @/ alias with named export ---\nconst aliasNamedExport: FieldConfig = {\n name: 'aliasNamed',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon#NavIcon',\n },\n },\n}\n\n// --- Valid: @/ alias with second named export ---\nconst aliasSecondExport: FieldConfig = {\n name: 'aliasSecond',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon#NavIconSmall',\n },\n },\n}\n\n// --- Valid: @/ alias to nested path with default export ---\nconst aliasDefaultExport: FieldConfig = {\n name: 'aliasDefault',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/ui/Badge',\n },\n },\n}\n\n// --- Valid: @/ alias in object form with exportName ---\nconst aliasObjectForm: FieldConfig = {\n name: 'aliasObj',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'Badge',\n path: '@/components/ui/Badge',\n },\n },\n },\n}\n\n// --- Valid: @/ alias in object form with # in path ---\nconst aliasObjectHash: FieldConfig = {\n name: 'aliasObjHash',\n type: 'text',\n admin: {\n components: {\n Field: {\n path: '@/components/NavIcon#NavIcon',\n },\n },\n },\n}\n\n// --- Invalid: @/ alias with wrong export ---\nconst aliasWrongExport: FieldConfig = {\n name: 'aliasWrongExport',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon#DoesNotExist',\n },\n },\n}\n\n// --- Invalid: @/ alias to non-existent file ---\nconst aliasInvalidPath: FieldConfig = {\n name: 'aliasBadPath',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NotAFile#Nope',\n },\n },\n}\n\n// --- Invalid: @/ alias no default export ---\nconst aliasNoDefault: FieldConfig = {\n name: 'aliasNoDefault',\n type: 'text',\n admin: {\n components: {\n Field: '@/components/NavIcon',\n },\n },\n}\n\n// --- Invalid: @/ alias in object form with wrong exportName ---\nconst aliasObjectWrongExport: FieldConfig = {\n name: 'aliasObjWrong',\n type: 'text',\n admin: {\n components: {\n Field: {\n exportName: 'Fake',\n path: '@/components/ui/Badge',\n },\n },\n },\n}\n\n// --- Valid: @/ alias in array context ---\nconst aliasInArray: AdminConfig = {\n components: {\n actions: ['@/components/NavIcon#NavIcon'],\n Nav: '@/components/ui/Badge#Badge',\n },\n}\n"],"names":["aliasNamedExport","name","type","admin","components","Field","aliasSecondExport","aliasDefaultExport","aliasObjectForm","exportName","path","aliasObjectHash","aliasWrongExport","aliasInvalidPath","aliasNoDefault","aliasObjectWrongExport","aliasInArray","actions","Nav"],"mappings":";;;;QAAO;AAEP,4CAA4C;AAC5C,MAAMA,mBAAgC;IACpCC,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,mDAAmD;AACnD,MAAMC,oBAAiC;IACrCL,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,6DAA6D;AAC7D,MAAME,qBAAkC;IACtCN,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,yDAAyD;AACzD,MAAMG,kBAA+B;IACnCP,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLI,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,wDAAwD;AACxD,MAAMC,kBAA+B;IACnCV,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLK,MAAM;YACR;QACF;IACF;AACF;AAEA,8CAA8C;AAC9C,MAAME,mBAAgC;IACpCX,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,iDAAiD;AACjD,MAAMQ,mBAAgC;IACpCZ,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,8CAA8C;AAC9C,MAAMS,iBAA8B;IAClCb,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;QACT;IACF;AACF;AAEA,iEAAiE;AACjE,MAAMU,yBAAsC;IAC1Cd,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,YAAY;YACVC,OAAO;gBACLI,YAAY;gBACZC,MAAM;YACR;QACF;IACF;AACF;AAEA,2CAA2C;AAC3C,MAAMM,eAA4B;IAChCZ,YAAY;QACVa,SAAS;YAAC;SAA+B;QACzCC,KAAK;IACP;AACF"}
package/package.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "name": "@payloadcms/typescript-plugin",
3
- "version": "4.0.0-internal.016994f",
3
+ "version": "4.0.0-internal.0731f09",
4
4
  "description": "TypeScript Language Service Plugin for Payload CMS - validates PayloadComponent import paths and provides autocomplete",
5
5
  "homepage": "https://payloadcms.com",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/payloadcms/payload.git",
9
- "directory": "packages/typescript-plugin"
10
- },
11
6
  "license": "MIT",
12
7
  "author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
13
8
  "maintainers": [
@@ -17,34 +12,37 @@
17
12
  "url": "https://payloadcms.com"
18
13
  }
19
14
  ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/payloadcms/payload.git",
18
+ "directory": "packages/typescript-plugin"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
20
23
  "sideEffects": false,
24
+ "main": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
21
26
  "exports": {
22
27
  ".": {
23
28
  "types": "./dist/index.d.ts",
24
29
  "default": "./dist/index.js"
25
30
  }
26
31
  },
27
- "main": "./dist/index.js",
28
- "types": "./dist/index.d.ts",
29
- "files": [
30
- "dist"
31
- ],
32
+ "publishConfig": {
33
+ "registry": "https://registry.npmjs.org/"
34
+ },
32
35
  "devDependencies": {
33
- "typescript": "6.0.3"
36
+ "typescript": "npm:@typescript/typescript6@6.0.2"
34
37
  },
35
38
  "engines": {
36
39
  "node": ">=24.15.0"
37
40
  },
38
- "publishConfig": {
39
- "registry": "https://registry.npmjs.org/"
40
- },
41
41
  "scripts": {
42
42
  "build": "rimraf tsconfig.tsbuildinfo && pnpm build:types && pnpm build:swc",
43
43
  "build:debug": "pnpm build",
44
44
  "build:swc": "swc ./src -d ./dist --config-file .swcrc-build --strip-leading-paths",
45
45
  "build:types": "tsc --emitDeclarationOnly --outDir dist",
46
- "clean": "rimraf -g {dist,*.tsbuildinfo}",
47
- "lint": "eslint .",
48
- "lint:fix": "eslint . --fix"
46
+ "clean": "rimraf -g {dist,*.tsbuildinfo}"
49
47
  }
50
48
  }