Skip to content

Commit

Permalink
chore: remove strapi-server file from generate plugin (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
  • Loading branch information
alexandrebodin authored Sep 10, 2024
1 parent e14fea4 commit 08d2f73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-squids-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@strapi/sdk-plugin": patch
---

chore: remove strapi-server file from generate plugin
11 changes: 0 additions & 11 deletions src/cli/commands/plugin/init/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,6 @@ const getPluginTemplate = ({ suggestedPackageName }: PluginTemplateOptions) => {
require: './dist/server/index.js',
default: './dist/server/index.js',
};

pkgJson.files.push('./strapi-server.js');

files.push({
name: 'strapi-server.js',
contents: outdent`
'use strict';
module.exports = require('./dist/server');
`,
});
}

break;
Expand Down

0 comments on commit 08d2f73

Please sign in to comment.