dir-archiver 2.2.0 → 3.0.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/package.json CHANGED
@@ -1,29 +1,48 @@
1
1
  {
2
2
  "name": "dir-archiver",
3
- "version": "2.2.0",
4
- "description": "Compress a whole directory (including subdirectories) into a zip file, with options to exclude specific files, or directories.",
3
+ "version": "3.0.1",
4
+ "description": "Bytefold-backed archive orchestration for directories/files across Node.js, Deno, and Bun.",
5
5
  "license": "MIT",
6
+ "type": "module",
6
7
  "main": "dist/index.js",
7
8
  "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
8
15
  "bin": {
9
16
  "dir-archiver": "dist/cli.js"
10
17
  },
11
18
  "files": [
12
19
  "LICENSE",
13
- "dist"
20
+ "README.md",
21
+ "CHANGELOG.md",
22
+ "CONTRACT.md",
23
+ "SECURITY.md",
24
+ "CONTRIBUTING.md",
25
+ "SUPPORT.md",
26
+ "docs",
27
+ "dist",
28
+ "jsr.json"
14
29
  ],
15
30
  "keywords": [
16
- "zip",
17
- "compression",
18
31
  "archive",
19
- "archiver",
20
- "folder",
21
- "directory",
22
- "dir"
32
+ "bytefold",
33
+ "dir-archiver",
34
+ "compression",
35
+ "cli",
36
+ "esm",
37
+ "jsr",
38
+ "npm",
39
+ "deno",
40
+ "bun",
41
+ "directory"
23
42
  ],
24
43
  "repository": {
25
44
  "type": "git",
26
- "url": "git+https://github.com/Ismail-elkorchi/dir-archiver.git"
45
+ "url": "https://github.com/Ismail-elkorchi/dir-archiver"
27
46
  },
28
47
  "author": {
29
48
  "name": "Ismail El Korchi",
@@ -34,26 +53,39 @@
34
53
  "homepage": "https://github.com/Ismail-elkorchi/dir-archiver",
35
54
  "scripts": {
36
55
  "build": "tsc -p tsconfig.json",
56
+ "examples:run": "node ./examples/run-all.mjs",
37
57
  "typecheck": "tsc -p tsconfig.json --noEmit",
38
58
  "lint": "npm run typecheck && eslint . --max-warnings=0",
39
- "test": "npm run build && node test/smoke.js && node test/cli.js",
59
+ "test": "npm run build && node --test test/api-snapshot.test.mjs test/operations.test.mjs test/cli.test.mjs test/cli-docs-drift.test.mjs test/matrix-node.test.mjs",
60
+ "check:fast": "npm run lint && npm run test && npm run examples:run",
61
+ "test:security": "npm run build && node --test test/security.test.mjs",
62
+ "check": "node ./scripts/verify-runtime-versions.mjs && node ./scripts/workflow-policy-check.mjs && node ./scripts/esm-only-guard.mjs && node ./scripts/docs-policy-check.mjs && npm run lint && npm run test && npm run examples:run && npm run test:security && npm run test:runtimes",
63
+ "deps:fresh": "node ./scripts/direct-runtime-deps-freshness.mjs",
64
+ "test:deno": "npm run build && deno run --allow-read --allow-write --allow-env --allow-sys test/deno-smoke.mjs",
65
+ "test:bun": "npm run build && bun test/bun-smoke.mjs",
66
+ "test:runtimes": "npm run test:deno && npm run test:bun && npm run test:runtimes:fingerprints",
67
+ "test:runtimes:fingerprints": "npm run build && node ./scripts/compare-runtime-fingerprints.mjs",
68
+ "jsr:score": "node ./scripts/jsr-score-gate.mjs",
69
+ "release:audit": "node ./scripts/release-audit.mjs",
70
+ "test:downstream:released": "npm run test",
71
+ "test:downstream:main": "npm install --no-save github:Ismail-elkorchi/bytefold#main github:Ismail-elkorchi/argv-flags#main && npm run test",
72
+ "jsr:dry": "deno publish --dry-run --allow-dirty --sloppy-imports",
40
73
  "prepack": "npm run build"
41
74
  },
42
75
  "engines": {
43
- "node": ">=18"
76
+ "node": ">=24"
44
77
  },
45
78
  "dependencies": {
46
- "archiver": "^7.0.1",
47
- "argv-flags": "^0.2.1"
79
+ "@ismail-elkorchi/bytefold": "^0.8.1",
80
+ "argv-flags": "^1.0.4"
48
81
  },
49
82
  "devDependencies": {
50
- "@eslint/js": "^9.39.2",
51
- "@types/archiver": "^7.0.0",
52
- "@types/node": "^20.11.0",
53
- "@typescript-eslint/eslint-plugin": "^8.54.0",
83
+ "@eslint/js": "^10.0.1",
84
+ "@types/node": "^25.3.2",
85
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
54
86
  "@typescript-eslint/parser": "^8.54.0",
55
- "eslint": "^9.39.2",
56
- "globals": "^17.2.0",
87
+ "eslint": "^10.0.2",
88
+ "globals": "^17.3.0",
57
89
  "typescript": "^5.3.3",
58
90
  "yauzl": "^3.2.0"
59
91
  }