next-build-filter 0.2.2 → 0.2.3

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.
@@ -32,14 +32,14 @@ function withPageFilter(options = {}) {
32
32
  return {
33
33
  ...nextConfig,
34
34
 
35
- webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
35
+ webpack: (config, options) => {
36
36
  // Apply the existing webpack config if it exists
37
37
  if (nextConfig.webpack) {
38
- config = nextConfig.webpack(config, { buildId, dev, isServer, defaultLoaders, webpack });
38
+ config = nextConfig.webpack(config, options);
39
39
  }
40
40
 
41
41
  // Don't apply filtering in development mode unless explicitly enabled
42
- if (dev && !filterOptions.enableInDev) {
42
+ if (options.dev && !filterOptions.enableInDev) {
43
43
  return config;
44
44
  }
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-build-filter",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A Next.js plugin to exclude pages/routes during build without removing files. Supports both Pages Router and App Router (Next.js 13+).",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "test:e2e": "node tests/e2e/run-e2e-tests.js",
18
18
  "test:all": "npm run test && npm run test:e2e",
19
19
  "prepublishOnly": "npm run build",
20
- "postversion": "npm publish",
20
+ "postversion": "npm run test:all && npm publish && git push --follow-tags",
21
21
  "build": "echo \"No build process needed for now\""
22
22
  },
23
23
  "keywords": [