Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 096a374

Browse files
committed
publish時に既存のファイルに影響がないよう改修
1 parent ec99c8e commit 096a374

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

index.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,10 @@ module.exports = class Next2DWebpackAutoLoaderPlugin
3636
const filename = compilation.options.output.filename;
3737
files.forEach((file) =>
3838
{
39-
if (file.indexOf(filename) > -1) {
40-
41-
if (!options.LICENSE && file.indexOf(`${filename}.LICENSE.txt`) > -1) {
42-
43-
fs.unlink(file, (err) => {
44-
if (err) {
45-
throw err;
46-
}
47-
});
48-
}
49-
50-
} else {
39+
if (file.indexOf(filename) > -1
40+
&& !options.LICENSE
41+
&& file.indexOf(`${filename}.LICENSE.txt`) > -1
42+
) {
5143

5244
fs.unlink(file, (err) => {
5345
if (err) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@next2d/webpack-auto-loader-plugin",
33
"description": "Next2D Framework webpack Auto Loader plugin.",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"author": "Toshiyuki Ienaga <[email protected]>",
66
"license": "MIT",
77
"main": "index.js",

0 commit comments

Comments
 (0)