@nitro/exporter 11.0.11 → 12.0.0-beta.1

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.
package/index.js CHANGED
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  const exportClean = require('./tasks/export-clean.js');
4
2
  const exportViews = require('./tasks/export-views.js');
5
3
  const exportProcessing = require('./tasks/export-processing.js');
package/lib/utils.js CHANGED
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  module.exports = {
4
2
  each(exporter, cb) {
5
3
  if (exporter.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitro/exporter",
3
- "version": "11.0.11",
3
+ "version": "12.0.0-beta.1",
4
4
  "description": "An exporting package for nitro. Generate static packages with ease.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9,12 +9,12 @@
9
9
  },
10
10
  "author": "The Nitro Team",
11
11
  "engines": {
12
- "node": ">=22.11.0 <25",
12
+ "node": ">=22.16.0 <25",
13
13
  "npm": ">=10.9.0 <12"
14
14
  },
15
15
  "main": "index.js",
16
16
  "scripts": {
17
- "lint": "eslint .",
17
+ "lint": "eslint lib tasks index.js",
18
18
  "prepublishOnly": "npx -y pkg-ok@2.3.1",
19
19
  "test": "npm run lint"
20
20
  },
@@ -28,8 +28,8 @@
28
28
  "exporter"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@nitro/app": ">=11.0.11",
32
- "@nitro/gulp": ">=11.0.11"
31
+ "@nitro/app": ">=12.0.0-beta.1",
32
+ "@nitro/gulp": ">=12.0.0-beta.1"
33
33
  },
34
34
  "dependencies": {
35
35
  "array-unique": "0.3.2",
@@ -42,10 +42,9 @@
42
42
  "gulp-zip": "6.1.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@merkle-open/eslint-config": "4.0.1",
45
+ "@merkle-open/eslint-config": "5.0.0",
46
46
  "@nitro/app": "*",
47
- "eslint": "8.57.1",
48
- "eslint-plugin-import": "2.32.0"
47
+ "eslint": "9.39.5"
49
48
  },
50
49
  "publishConfig": {
51
50
  "access": "public"
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  const fs = require('fs/promises');
4
2
  const utils = require('../lib/utils.js');
5
3
 
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  const del = (...args) => import('del').then(m => m.deleteAsync(...args));
4
2
  const deleteEmpty = require('delete-empty');
5
3
  const fs = require('fs');
@@ -12,8 +10,6 @@ const unique = require('array-unique');
12
10
  const utils = require('../lib/utils.js');
13
11
 
14
12
  module.exports = function (gulp, config) {
15
- 'use strict';
16
-
17
13
  const processes = [];
18
14
 
19
15
  utils.each(config.exporter, (configEntry) => {
@@ -160,6 +156,7 @@ module.exports = function (gulp, config) {
160
156
 
161
157
  if (configEntry.zip) {
162
158
  getZipPromise = function () {
159
+ // eslint-disable-next-line no-async-promise-executor
163
160
  return new Promise(async (resolve, reject) => {
164
161
  try {
165
162
  const { default: gulpZip } = await import('gulp-zip');
@@ -1,8 +1,6 @@
1
1
  const utils = require('../lib/utils.js');
2
2
 
3
3
  module.exports = async function (gulp, config) {
4
- 'use strict';
5
-
6
4
  const { default: filter } = await import('gulp-filter');
7
5
  const nitroTmpDirectory = `${config.get('nitro.tmpDirectory')}/views`;
8
6
  const processes = [];