@newkrok/nape-js 1.0.0 → 3.0.0

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,10 +1,35 @@
1
1
  {
2
2
  "name": "@newkrok/nape-js",
3
- "version": "1.0.0",
4
- "description": "Nape Physics Engine compiled to JavaScript",
5
- "main": "js/libs/nape-js.module.js",
6
- "bin": {
7
- "three-particles": "js/libs/nape-js.module.js"
3
+ "version": "3.0.0",
4
+ "description": "Nape Physics Engine - Modern TypeScript wrapper for 2D physics simulation",
5
+ "type": "module",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "js/libs"
24
+ ],
25
+ "scripts": {
26
+ "prebuild": "node scripts/build-nape-module.mjs",
27
+ "build": "npm run prebuild && tsup",
28
+ "pretest": "npm run prebuild",
29
+ "test": "vitest run",
30
+ "test:watch": "vitest",
31
+ "benchmark": "npm run build && node benchmarks/run.mjs",
32
+ "build:docs": "npm run build && cp dist/index.js docs/nape-js.esm.js"
8
33
  },
9
34
  "repository": {
10
35
  "type": "git",
@@ -14,13 +39,20 @@
14
39
  "nape",
15
40
  "physics",
16
41
  "2d",
17
- "javascript",
18
- "library"
42
+ "typescript",
43
+ "physics-engine",
44
+ "collision-detection",
45
+ "rigid-body"
19
46
  ],
20
47
  "author": "Istvan Krisztian Somoracz",
21
48
  "license": "MIT",
22
49
  "bugs": {
23
50
  "url": "https://github.com/NewKrok/nape-js/issues"
24
51
  },
25
- "homepage": "https://github.com/NewKrok/nape-js#readme"
52
+ "homepage": "https://github.com/NewKrok/nape-js#readme",
53
+ "devDependencies": {
54
+ "tsup": "^8.4.0",
55
+ "typescript": "^5.7.0",
56
+ "vitest": "^3.0.0"
57
+ }
26
58
  }