animejs 3.2.1 → 4.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,38 +1,62 @@
1
1
  {
2
2
  "name": "animejs",
3
- "version": "3.2.1",
4
- "homepage": "http://animejs.com",
5
- "repository": "juliangarnier/anime",
3
+ "version": "4.0.0",
4
+ "homepage": "https://animejs.com",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/juliangarnier/anime.git"
8
+ },
6
9
  "description": "JavaScript animation engine",
7
- "umd:main": "lib/anime.min.js",
8
- "module": "lib/anime.es.js",
9
- "main": "lib/anime.js",
10
- "umd:name": "anime",
10
+ "main": "lib/anime.umd.js",
11
+ "module": "lib/anime.esm.js",
12
+ "types": "types/index.d.ts",
13
+ "type": "module",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./types/index.d.ts",
17
+ "import": "./lib/anime.esm.js",
18
+ "require": "./lib/anime.cjs"
19
+ },
20
+ "./package.json": "./package.json"
21
+ },
11
22
  "license": "MIT",
12
23
  "author": "Julian Garnier <hello@julian.gr>",
13
- "files": [
14
- "lib"
15
- ],
16
- "scripts": {
17
- "build": "node build"
18
- },
24
+ "sideEffects": false,
19
25
  "bugs": {
20
26
  "url": "https://github.com/juliangarnier/anime/issues"
21
27
  },
28
+ "files": [
29
+ "lib",
30
+ "types"
31
+ ],
22
32
  "keywords": [
23
33
  "anime",
34
+ "anime.js",
24
35
  "animation",
25
- "javascript",
36
+ "JavaScript",
26
37
  "CSS",
27
38
  "transforms",
28
39
  "SVG",
29
40
  "canvas"
30
41
  ],
31
42
  "devDependencies": {
32
- "gzip-size": "^4.1.0",
33
- "pretty-bytes": "^4.0.2",
34
- "rollup": "^0.53.2",
35
- "rollup-plugin-buble": "^0.18.0",
36
- "uglify-js": "^3.3.4"
43
+ "@rollup/plugin-terser": "^0.4.4",
44
+ "browser-sync": "^2.29.3",
45
+ "chai": "^4.3.10",
46
+ "mocha": "^10.2.0",
47
+ "rollup": "^4.9.1",
48
+ "rollup-plugin-filesize": "^10.0.0",
49
+ "rollup-plugin-ts": "^3.4.5",
50
+ "three": "^0.160.0",
51
+ "typescript": "5.1.6"
52
+ },
53
+ "scripts": {
54
+ "dev": "rollup -c -w",
55
+ "dev-types": "types=true rollup -c -w",
56
+ "build": "build=true types=true rollup -c",
57
+ "release": "build=true release=true types=true rollup -c",
58
+ "open-examples": "browser-sync start --startPath examples --server --no-notify --directory --files '**/*.js'",
59
+ "test-browser": "browser-sync start --startPath tests/index.html --server --files '**/*.js' --no-notify --directory",
60
+ "test-node": "node --allow-natives-syntax \"node_modules/.bin/mocha\" -u tdd --timeout 20000 \"./tests/suites/node.test.js\""
37
61
  }
38
62
  }