Skip to content

Commit

Permalink
[Fix] Wordpress plugin zip
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkdev committed Mar 31, 2021
1 parent 49d7818 commit a859a79
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/wordpress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ shell.mkdir("-p", `${__dirname}/../build/${pkg.name.replace("@ptkdev/", "")}/`);
shell.mkdir("-p", `${__dirname}/../dist/wordpress/`);
shell.cp("-R", `${__dirname}/../dist/*`, `${__dirname}/../build/${pkg.name.replace("@ptkdev/", "")}/`);

shell.exec(
`cd build && zip -r ../dist/wordpress/${pkg.name.replace("@ptkdev/", "")}-wordpress-plugin.zip .`,
);
shell.exec(`cd build && zip -r ../dist/wordpress/${pkg.name.replace("@ptkdev/", "")}-wordpress-plugin.zip .`);

shell.rm("-r", `${__dirname}/../build`);
shell.rm("-r", `${__dirname}/../dist/svelte_webcomponent_boilerplate.php`);
Expand Down

0 comments on commit a859a79

Please sign in to comment.