Skip to content

Commit

Permalink
fix: Hopefully fixed the zip file problems
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Jul 1, 2020
1 parent 707ea74 commit 27c469c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"typescript": "^3.9.5",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12",
"write-file-webpack-plugin": "^4.5.1",
"zip-webpack-plugin": "^3.0.0"
"write-file-webpack-plugin": "^4.5.1"
},
"browserslist": [
"last 3 versions"
Expand Down
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
'&& cp static/system.json dist ' +
'&& sed -ie \'s|\\(.*"version"\\): "\\(.*\\)",.*|\\1: \'"\\"${nextRelease.version}\\",|" package.json ' +
'&& npm install ' +
'&& cd dist && zip -fr twodsix.zip || true && cd ..' +
'&& cd dist && zip -r twodsix.zip * || true && cd ..' +
'',
}],
["@semantic-release/git", {
Expand Down
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const fs = require('fs-extra');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const WriteFilePlugin = require('write-file-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ZipPlugin = require('zip-webpack-plugin');

function getFoundryConfig() {
const configPath = path.resolve(process.cwd(), 'foundryconfig.json');
Expand Down Expand Up @@ -59,8 +58,7 @@ module.exports = (env, argv) => {
new WriteFilePlugin(),
new MiniCssExtractPlugin({
filename: 'src/scss/twodsix.scss'
}),
new ZipPlugin({"filename": "twodsix.zip"})
})
],
resolve: {
extensions: ['.tsx', '.ts', '.js']
Expand Down

0 comments on commit 27c469c

Please sign in to comment.