diff --git a/README.md b/README.md index 618ad83..e10d1fb 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,6 @@ A plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provid ## 🧰 Requirements - `strapi@4.X.X` -- `mathjs@11.9.1` Complete installation requirements are exact the same as for Strapi itself and could be found in the [official Strapi documentation](https://docs.strapi.io/dev-docs/quick-start). diff --git a/admin/src/index.js b/admin/src/index.js index f0380fc..4fb10e4 100644 --- a/admin/src/index.js +++ b/admin/src/index.js @@ -1,16 +1,13 @@ import { prefixPluginTranslations } from '@strapi/helper-plugin'; -import pluginPkg from '../../package.json'; import pluginId from './pluginId'; import getTrad from './utils/getTrad'; -const { name } = pluginPkg.strapi; - export default { register(app) { app.customFields.register({ - name, - pluginId, + name: 'formula', + pluginId: 'field-formula', type: 'json', intlLabel: { id: getTrad(`label`), diff --git a/package.json b/package.json index 4d159cb..fa18492 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "strapi-plugin-field-formula", - "version": "1.0.2", + "version": "1.0.3", "description": "Strapi Plugin Field Formula - Custom Field for integration mathjs and Strapi", "strapi": { "name": "field-formula", diff --git a/server/register.js b/server/register.js index 0809f1c..cd03875 100644 --- a/server/register.js +++ b/server/register.js @@ -2,7 +2,7 @@ module.exports = ({ strapi }) => { strapi.customFields.register({ - name: 'strapi-plugin-field-formula', + name: 'formula', plugin: 'field-formula', type: 'json' });