375 lines
11 KiB
JSON
375 lines
11 KiB
JSON
{
|
|
"name": "pixi.js",
|
|
"version": "8.4.1",
|
|
"author": "PixiJS Team",
|
|
"homepage": "http://pixijs.com/",
|
|
"bugs": "https://github.com/pixijs/pixijs/issues",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/pixijs/pixijs.git"
|
|
},
|
|
"main": "lib/index.js",
|
|
"module": "lib/index.mjs",
|
|
"types": "lib/index.d.ts",
|
|
"files": [
|
|
"lib",
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"start": "run-s watch",
|
|
"clean": "run-s clean:*",
|
|
"clean:build": "rimraf \"{lib,dist,out}\" --glob",
|
|
"clean:index": "rimraf \"src/*/**/index.ts\" --glob",
|
|
"clean:uploads": "rimraf .pr_uploads .s3_uploads --glob",
|
|
"prebuild": "npm run clean",
|
|
"build": "run-s build:index build:pkg build:rollup build:tsc build:dts build:dts-bundle",
|
|
"build:rollup": "npx rollup -c --failAfterWarnings",
|
|
"build:dts-bundle": "dts-bundle-generator --config dts.config.js",
|
|
"build:tsc": "tsc -p tsconfig.types.json",
|
|
"build:index": "ts-node --transpile-only ./scripts/index/index.ts",
|
|
"build:dts": "ts-node --transpile-only ./scripts/types/fixTypes.ts && copyfiles -u 1 \"src/**/*.d.ts\" lib/",
|
|
"build:pkg": "ts-node ./scripts/utils/exports.ts",
|
|
"dist": "run-s build docs && copyfiles -u 1 \"dist/**/*\" .s3_uploads/",
|
|
"prewatch": "npm run build",
|
|
"postbuild": "rimraf \"src/*/**/index.ts\" --glob",
|
|
"watch": "nodemon --watch \"./src/*\" --exec \"npm run watch:build\" -e ts,js,vert,frag,wgsl,d.ts --ignore \"index.ts\"",
|
|
"watch:lib": "cross-env LIB_ONLY=1 nodemon --watch \"./src/*\" --exec \"npm run watch:build\" -e ts,js,vert,frag,wgsl,d.ts --ignore \"index.ts\"",
|
|
"watch:build": "run-s build:index build:rollup build:tsc build:dts postbuild",
|
|
"test": "run-s test:unit test:scene",
|
|
"test:unit": "npx jest --silent --testPathIgnorePatterns=tests/visual",
|
|
"test:debug": "cross-env DEBUG_MODE=1 npx jest --testPathIgnorePatterns=tests/visual",
|
|
"test:server": "npx http-server -p 8080 -c-1",
|
|
"test:scene": "npx jest --silent --testPathPattern=tests/visual",
|
|
"test:scene:debug": "cross-env DEBUG_MODE=1 npx jest --testPathPattern=tests/visual",
|
|
"test:types": "tsc --noEmit",
|
|
"docs": "mkdirp out && npm run docs:webdoc",
|
|
"docs:webdoc": "webdoc -R README.md",
|
|
"docs:watch": "nodemon --watch \"./src/*\" --exec \"npm run docs\" -e ts",
|
|
"lint": "eslint --ext .js --ext .ts ./ --cache --max-warnings 0",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"codesandbox-ci": "run-s build",
|
|
"prerelease": "run-s clean:build test dist",
|
|
"release": "ts-node ./scripts/release.ts",
|
|
"publish-ci": "npm publish",
|
|
"preprune": "run-s build:index",
|
|
"prune": "knip --exclude enumMembers --no-gitignore",
|
|
"ci:lint": "run-s lint test:types prune"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,js,mjs}": "npm run lint:fix --"
|
|
},
|
|
"dependencies": {
|
|
"@pixi/colord": "^2.9.6",
|
|
"@types/css-font-loading-module": "^0.0.12",
|
|
"@types/earcut": "^2.1.4",
|
|
"@webgpu/types": "^0.1.40",
|
|
"@xmldom/xmldom": "^0.8.10",
|
|
"earcut": "^2.2.4",
|
|
"eventemitter3": "^5.0.1",
|
|
"ismobilejs": "^1.1.1",
|
|
"parse-svg-path": "^0.1.2"
|
|
},
|
|
"devDependencies": {
|
|
"@pixi/eslint-config": "^5.1.0",
|
|
"@pixi/jest-electron": "^26.0.0",
|
|
"@pixi/webdoc-template": "^2.2.3",
|
|
"@pixi/webworker-plugins": "^0.3.0",
|
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
"@rollup/plugin-json": "^6.0.0",
|
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
"@types/fs-extra": "^11.0.1",
|
|
"@types/glob": "^8.1.0",
|
|
"@types/inquirer": "^8.0.0",
|
|
"@types/jest": "^26.0.0",
|
|
"@types/pixelmatch": "^5.2.4",
|
|
"@types/pngjs": "^6.0.2",
|
|
"@webdoc/cli": "^2.2.0",
|
|
"@xmldom/xmldom": "^0.8.10",
|
|
"copyfiles": "^2.4.1",
|
|
"cross-env": "^7.0.3",
|
|
"dts-bundle-generator": "^9.3.1",
|
|
"electron": "^12.0.0",
|
|
"esbuild": "^0.19.0",
|
|
"eslint": "^8.38.0",
|
|
"eslint-plugin-jest": "^27.6.0",
|
|
"eslint-plugin-jsdoc": "^48.0.0",
|
|
"eslint-plugin-no-mixed-operators": "^1.1.1",
|
|
"fs-extra": "^11.2.0",
|
|
"glob": "^8.1.0",
|
|
"http-server": "^14.1.1",
|
|
"husky": "^8.0.3",
|
|
"inquirer": "^8.2.6",
|
|
"jest": "^26.0.0",
|
|
"jest-extended": "^1.2.1",
|
|
"jest-raw-loader": "^1.0.1",
|
|
"knip": "^5.25.2",
|
|
"lint-staged": "^15.2.7",
|
|
"mkdirp": "^3.0.1",
|
|
"nodemon": "^3.0.2",
|
|
"npm-run-all": "^4.1.5",
|
|
"pixelmatch": "^5.3.0",
|
|
"pngjs": "^7.0.0",
|
|
"rimraf": "^5.0.0",
|
|
"rollup": "^3.0.0",
|
|
"rollup-plugin-esbuild": "^6.0.0",
|
|
"rollup-plugin-external-globals": "^0.9.1",
|
|
"rollup-plugin-jscc": "^2.0.0",
|
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
"rollup-plugin-string": "^3.0.0",
|
|
"semver": "^7.3.8",
|
|
"tree-kill": "^1.2.2",
|
|
"ts-jest": "^26.0.0",
|
|
"ts-node": "^9.0.0",
|
|
"typescript": "^5.0.4"
|
|
},
|
|
"bundles": [
|
|
{
|
|
"src": "src/bundle.browser.ts",
|
|
"target": "dist/pixi.js",
|
|
"module": "dist/pixi.mjs",
|
|
"plugin": false
|
|
},
|
|
{
|
|
"src": "src/bundle.math-extras.ts",
|
|
"target": "dist/packages/math-extras.js",
|
|
"module": "dist/packages/math-extras.mjs",
|
|
"plugin": [
|
|
"/maths/"
|
|
]
|
|
},
|
|
{
|
|
"src": "src/bundle.unsafe-eval.ts",
|
|
"target": "dist/packages/unsafe-eval.js",
|
|
"module": "dist/packages/unsafe-eval.mjs",
|
|
"plugin": [
|
|
"/rendering/"
|
|
]
|
|
},
|
|
{
|
|
"src": "src/bundle.advanced-blend-modes.ts",
|
|
"target": "dist/packages/advanced-blend-modes.js",
|
|
"module": "dist/packages/advanced-blend-modes.mjs",
|
|
"plugin": [
|
|
"/rendering/",
|
|
"/extensions/",
|
|
"/filters/"
|
|
]
|
|
},
|
|
{
|
|
"src": "src/bundle.webworker.ts",
|
|
"target": "dist/webworker.js",
|
|
"module": "dist/webworker.mjs",
|
|
"plugin": false
|
|
}
|
|
],
|
|
"sideEffects": [
|
|
"./lib/environment-browser/browserAll.*",
|
|
"./lib/environment-webworker/webworkerAll.*",
|
|
"./lib/index.*",
|
|
"./lib/rendering/init.*",
|
|
"./lib/spritesheet/init.*",
|
|
"./lib/rendering/renderers/shared/texture/utils/textureFrom.*",
|
|
"./lib/accessibility/init.*",
|
|
"./lib/advanced-blend-modes/init.*",
|
|
"./lib/app/init.*",
|
|
"./lib/compressed-textures/dds/init.*",
|
|
"./lib/compressed-textures/ktx/init.*",
|
|
"./lib/compressed-textures/ktx2/init.*",
|
|
"./lib/compressed-textures/basis/init.*",
|
|
"./lib/events/init.*",
|
|
"./lib/filters/init.*",
|
|
"./lib/math-extras/init.*",
|
|
"./lib/scene/sprite-tiling/init.*",
|
|
"./lib/scene/text/init.*",
|
|
"./lib/scene/text-bitmap/init.*",
|
|
"./lib/scene/text-html/init.*",
|
|
"./lib/scene/graphics/init.*",
|
|
"./lib/scene/mesh/init.*",
|
|
"./lib/prepare/init.*",
|
|
"./lib/unsafe-eval/init.*",
|
|
"./lib/scene/sprite-nine-slice/init.*"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./lib/index.d.ts",
|
|
"default": "./lib/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./lib/index.d.ts",
|
|
"default": "./lib/index.js"
|
|
}
|
|
},
|
|
"./browser": {
|
|
"import": {
|
|
"default": "./lib/environment-browser/browserAll.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/environment-browser/browserAll.js"
|
|
}
|
|
},
|
|
"./webworker": {
|
|
"import": {
|
|
"default": "./lib/environment-webworker/webworkerAll.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/environment-webworker/webworkerAll.js"
|
|
}
|
|
},
|
|
"./accessibility": {
|
|
"import": {
|
|
"default": "./lib/accessibility/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/accessibility/init.js"
|
|
}
|
|
},
|
|
"./advanced-blend-modes": {
|
|
"import": {
|
|
"default": "./lib/advanced-blend-modes/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/advanced-blend-modes/init.js"
|
|
}
|
|
},
|
|
"./app": {
|
|
"import": {
|
|
"default": "./lib/app/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/app/init.js"
|
|
}
|
|
},
|
|
"./dds": {
|
|
"import": {
|
|
"default": "./lib/compressed-textures/dds/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/compressed-textures/dds/init.js"
|
|
}
|
|
},
|
|
"./ktx": {
|
|
"import": {
|
|
"default": "./lib/compressed-textures/ktx/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/compressed-textures/ktx/init.js"
|
|
}
|
|
},
|
|
"./ktx2": {
|
|
"import": {
|
|
"default": "./lib/compressed-textures/ktx2/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/compressed-textures/ktx2/init.js"
|
|
}
|
|
},
|
|
"./basis": {
|
|
"import": {
|
|
"default": "./lib/compressed-textures/basis/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/compressed-textures/basis/init.js"
|
|
}
|
|
},
|
|
"./events": {
|
|
"import": {
|
|
"default": "./lib/events/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/events/init.js"
|
|
}
|
|
},
|
|
"./filters": {
|
|
"import": {
|
|
"default": "./lib/filters/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/filters/init.js"
|
|
}
|
|
},
|
|
"./math-extras": {
|
|
"import": {
|
|
"default": "./lib/math-extras/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/math-extras/init.js"
|
|
}
|
|
},
|
|
"./sprite-tiling": {
|
|
"import": {
|
|
"default": "./lib/scene/sprite-tiling/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/scene/sprite-tiling/init.js"
|
|
}
|
|
},
|
|
"./text": {
|
|
"import": {
|
|
"default": "./lib/scene/text/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/scene/text/init.js"
|
|
}
|
|
},
|
|
"./text-bitmap": {
|
|
"import": {
|
|
"default": "./lib/scene/text-bitmap/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/scene/text-bitmap/init.js"
|
|
}
|
|
},
|
|
"./text-html": {
|
|
"import": {
|
|
"default": "./lib/scene/text-html/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/scene/text-html/init.js"
|
|
}
|
|
},
|
|
"./graphics": {
|
|
"import": {
|
|
"default": "./lib/scene/graphics/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/scene/graphics/init.js"
|
|
}
|
|
},
|
|
"./mesh": {
|
|
"import": {
|
|
"default": "./lib/scene/mesh/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/scene/mesh/init.js"
|
|
}
|
|
},
|
|
"./prepare": {
|
|
"import": {
|
|
"default": "./lib/prepare/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/prepare/init.js"
|
|
}
|
|
},
|
|
"./unsafe-eval": {
|
|
"import": {
|
|
"default": "./lib/unsafe-eval/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/unsafe-eval/init.js"
|
|
}
|
|
},
|
|
"./sprite-nine-slice": {
|
|
"import": {
|
|
"default": "./lib/scene/sprite-nine-slice/init.mjs"
|
|
},
|
|
"require": {
|
|
"default": "./lib/scene/sprite-nine-slice/init.js"
|
|
}
|
|
}
|
|
}
|
|
}
|