weboptimizer 2.0.1609 → 2.0.1611

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +13 -12
package/index.js CHANGED
@@ -135,7 +135,13 @@ var main = function main(context) {
135
135
  NOTE: If we have a dependency cycle we need to preserve files
136
136
  during pre-install phase.
137
137
  */
138
- if (!(!['build', 'build:types', 'lint', 'preinstall', 'serve', 'test', 'test:browser', 'test:coverage', 'test:coverage:report'].includes(configuration.givenCommandLineArguments[2]) && possibleArguments.includes(configuration.givenCommandLineArguments[2]))) {
138
+ if (!(possibleArguments.includes(configuration.givenCommandLineArguments[2]) && !['build', 'build:types', 'lint', 'preinstall', 'test', 'test:browser', 'test:coverage', 'test:coverage:report'].includes(configuration.givenCommandLineArguments[2]) ||
139
+ /*
140
+ NOTE: If target artefacts are located next to their source
141
+ files, we need to clear them first when performing a
142
+ "serve" to avoid utilizing pre-build artefacts in dev mode.
143
+ */
144
+ configuration.givenCommandLineArguments[2] === 'serve' && configuration.path.source.base === configuration.path.target.base)) {
139
145
  _context3.next = 20;
140
146
  break;
141
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1609",
3
+ "version": "2.0.1611",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -98,7 +98,7 @@
98
98
  "babel-loader": "^10.0.0",
99
99
  "babel-plugin-transform-modern-regexp": "^0.0.6",
100
100
  "babel-preset-minify": "^0.5.2",
101
- "clientnode": "3.0.1308",
101
+ "clientnode": "3.0.1311",
102
102
  "ejs": "^3.1.10",
103
103
  "exports-loader": "^5.0.0",
104
104
  "extract-loader": "^5.1.0",
@@ -107,11 +107,11 @@
107
107
  "html-minifier": "^4.0.0",
108
108
  "html-webpack-plugin": "^5.6.4",
109
109
  "imports-loader": "^5.0.0",
110
- "jest-environment-jsdom": "^30.1.2",
110
+ "jest-environment-jsdom": "^30.2.0",
111
111
  "rimraf": "^6.0.1",
112
112
  "script-loader": "^0.7.2",
113
- "typescript": "^5.9.2",
114
- "webpack": "^5.101.3",
113
+ "typescript": "^5.9.3",
114
+ "webpack": "^5.102.0",
115
115
  "webpack-cli": "^6.0.1",
116
116
  "webpack-sources": "^3.3.3"
117
117
  },
@@ -124,23 +124,23 @@
124
124
  "@types/html-minifier": "^4.0.5",
125
125
  "@types/html-minifier-terser": "^7.0.2",
126
126
  "@types/imagemin": "^9.0.1",
127
- "@types/node": "^24.5.2",
127
+ "@types/node": "^24.6.2",
128
128
  "@types/postcss-import": "^14.0.3",
129
129
  "@types/postcss-url": "^10.0.4",
130
130
  "@types/webpack-env": "^1.18.8",
131
131
  "@types/webpack-sources": "^3.2.3",
132
- "@typescript-eslint/parser": "^8.44.0",
132
+ "@typescript-eslint/parser": "^8.45.0",
133
133
  "css-loader": "^7.1.2",
134
134
  "cssnano": "^7.1.1",
135
135
  "documentation-website": "^1.0.394",
136
136
  "eslint": "^9.36.0",
137
137
  "eslint-config-google": "^0.14.0",
138
- "eslint-plugin-jsdoc": "^60.1.0",
138
+ "eslint-plugin-jsdoc": "^60.7.1",
139
139
  "favicons": "^7.2.0",
140
140
  "favicons-webpack-plugin": "^6.0.1",
141
141
  "globals": "^16.4.0",
142
142
  "image-minimizer-webpack-plugin": "^4.1.4",
143
- "jest": "^30.1.3",
143
+ "jest": "^30.2.0",
144
144
  "jsdoc": "^4.0.4",
145
145
  "mini-css-extract-plugin": "^2.9.4",
146
146
  "mkdirp": "^3.0.1",
@@ -154,10 +154,10 @@
154
154
  "postcss-url": "^10.1.3",
155
155
  "shx": "^0.4.0",
156
156
  "style-loader": "^4.0.0",
157
- "stylelint": "^16.24.0",
157
+ "stylelint": "^16.25.0",
158
158
  "stylelint-config-standard": "^39.0.0",
159
159
  "stylelint-config-standard-scss": "^16.0.0",
160
- "typescript-eslint": "^8.44.0",
160
+ "typescript-eslint": "^8.45.0",
161
161
  "typescript-plugin-css-modules": "^5.2.0",
162
162
  "workbox-webpack-plugin": "^7.3.0"
163
163
  },
@@ -1544,8 +1544,9 @@
1544
1544
  {
1545
1545
  "__evaluate__": "path.resolve(self.path.target.base, '*.js')"
1546
1546
  },
1547
+ "# NOTE: We need to ignore build js files but not the whole \"node_modules\" folder potentially. That means that we can only completly ignore files in target if it is not the same as the root folder",
1547
1548
  {
1548
- "__evaluate__": "path.resolve(self.path.target.base, '**/*.js')"
1549
+ "__evaluate__": "filesystem.isDirectorySync(path.resolve(self.path.target.base, 'node_modules')) ? path.resolve(self.path.target.base, '*/*.js') : path.resolve(self.path.target.base, '**/*.js')"
1549
1550
  }
1550
1551
  ]
1551
1552
  }