@versatiles/versatiles-rs 3.0.0 → 3.0.2

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 (1) hide show
  1. package/package.json +19 -12
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@versatiles/versatiles-rs",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Node.js bindings for VersaTiles - convert, serve, and process map tiles",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
+ "type": "module",
8
+ "exports": {
9
+ "types": "./index.d.ts",
10
+ "import": "./index.js",
11
+ "require": "./index.cjs"
12
+ },
7
13
  "files": [
8
14
  "index.d.ts",
9
15
  "index.js",
16
+ "index.cjs",
10
17
  "versatiles.*.node"
11
18
  ],
12
19
  "napi": {
@@ -42,8 +49,8 @@
42
49
  },
43
50
  "scripts": {
44
51
  "artifacts": "napi artifacts",
45
- "build:debug": "napi build --platform",
46
- "build": "napi build --platform --release",
52
+ "build:debug": "napi build --platform --esm",
53
+ "build": "napi build --platform --release --esm",
47
54
  "check": "npm run build:debug && npm run typecheck && npm run lint && npm run test && npm run test:examples && npm run format:check",
48
55
  "docs:clean": "rm -rf docs",
49
56
  "docs:generate": "typedoc",
@@ -51,12 +58,12 @@
51
58
  "fix": "npm run lint:fix && npm run format",
52
59
  "format:check": "prettier --check .",
53
60
  "format": "prettier --write .",
54
- "lint:fix": "eslint src --fix",
55
- "lint": "eslint src",
61
+ "lint:fix": "eslint . --fix",
62
+ "lint": "eslint .",
56
63
  "pack:dry": "npm pack --dry-run",
57
64
  "prepublishOnly": "napi prepublish -t npm",
58
65
  "test:coverage": "vitest run --coverage",
59
- "test:examples": "for file in examples/*.mjs; do echo \"\\n=== Running $file ===\"; node \"$file\" || exit 1; done",
66
+ "test:examples": "for file in examples/*.ts; do echo \"\\n=== Running $file ===\"; npx tsx \"$file\" || exit 1; done",
60
67
  "test:ui": "vitest --ui",
61
68
  "test:watch": "vitest",
62
69
  "test": "vitest run",
@@ -82,11 +89,11 @@
82
89
  "vitest": "^4.0.16"
83
90
  },
84
91
  "optionalDependencies": {
85
- "@versatiles/versatiles-rs-darwin-arm64": "3.0.0",
86
- "@versatiles/versatiles-rs-darwin-x64": "3.0.0",
87
- "@versatiles/versatiles-rs-linux-arm64-gnu": "3.0.0",
88
- "@versatiles/versatiles-rs-linux-x64-gnu": "3.0.0",
89
- "@versatiles/versatiles-rs-win32-arm64-msvc": "3.0.0",
90
- "@versatiles/versatiles-rs-win32-x64-msvc": "3.0.0"
92
+ "@versatiles/versatiles-rs-darwin-arm64": "3.0.2",
93
+ "@versatiles/versatiles-rs-darwin-x64": "3.0.2",
94
+ "@versatiles/versatiles-rs-linux-arm64-gnu": "3.0.2",
95
+ "@versatiles/versatiles-rs-linux-x64-gnu": "3.0.2",
96
+ "@versatiles/versatiles-rs-win32-arm64-msvc": "3.0.2",
97
+ "@versatiles/versatiles-rs-win32-x64-msvc": "3.0.2"
91
98
  }
92
99
  }