This is a monorepo housing Cortex-maintained plugins for Cortex.
- Use Scaffolder to create a new plugin inside the
pluginsdirectory. IMPORTANT: use the "Plugin in cortex-plugins" template on tenantcortexin prod and point it at this repo with the subdirectoryplugins/{plugin-name}(replace "{plugin-name}" with the name of your plugin). - Update the
tsconfig.jsonfiletypeRootsproperty to include types at the root of the repo, 1.e."typeRoots": ["../../node_modules/@types", "./node_modules/@types"],
- Update the
jest.config.jsmodule name mappings for@cortexapps/plugin-coreto point at the root of the repo, i.e."@cortexapps/plugin-core/components": "<rootDir>/../../node_modules/@cortexapps/plugin-core/dist/components.cjs.js", "@cortexapps/plugin-core": "<rootDir>/../../node_modules/@cortexapps/plugin-core/dist/index.cjs.js",