94 lines
2.8 KiB
JSON
94 lines
2.8 KiB
JSON
{
|
|
"name": "wavesurfer.js",
|
|
"version": "7.12.1",
|
|
"license": "BSD-3-Clause",
|
|
"author": "katspaugh",
|
|
"description": "Audio waveform player",
|
|
"homepage": "https://wavesurfer.xyz",
|
|
"keywords": [
|
|
"waveform",
|
|
"spectrogram",
|
|
"audio",
|
|
"player",
|
|
"music",
|
|
"linguistics"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:katspaugh/wavesurfer.js.git"
|
|
},
|
|
"type": "module",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"main": "./dist/wavesurfer.js",
|
|
"unpkg": "./dist/wavesurfer.min.js",
|
|
"module": "./dist/wavesurfer.js",
|
|
"browser": "./dist/wavesurfer.js",
|
|
"types": "./dist/wavesurfer.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/wavesurfer.esm.js",
|
|
"types": "./dist/wavesurfer.d.ts",
|
|
"require": "./dist/wavesurfer.cjs"
|
|
},
|
|
"./dist/plugins/*.js": {
|
|
"import": "./dist/plugins/*.esm.js",
|
|
"types": "./dist/plugins/*.d.ts",
|
|
"require": "./dist/plugins/*.cjs"
|
|
},
|
|
"./plugins/*": {
|
|
"import": "./dist/plugins/*.esm.js",
|
|
"types": "./dist/plugins/*.d.ts",
|
|
"require": "./dist/plugins/*.cjs"
|
|
},
|
|
"./dist/*": {
|
|
"import": "./dist/*",
|
|
"types": "./dist/*.d.ts",
|
|
"require": "./dist/*.cjs"
|
|
},
|
|
"./dist/plugins/*.esm.js": {
|
|
"import": "./dist/plugins/*.esm.js",
|
|
"types": "./dist/plugins/*.d.ts",
|
|
"require": "./dist/plugins/*.cjs"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"clean": "node ./scripts/clean.cjs",
|
|
"build:dev": "tsc -w --target ESNext",
|
|
"build": "npm run clean && tsc && rollup -c",
|
|
"prepublishOnly": "npm run build",
|
|
"lint": "eslint \"src/**/*.ts\" --fix",
|
|
"lint:report": "eslint \"src/**/*.ts\" --output-file eslint_report.json --format json",
|
|
"prettier": "prettier -w '**/*.{js,ts,css}' --ignore-path .gitignore",
|
|
"make-plugin": "./scripts/plugin.sh",
|
|
"cypress": "cypress open --e2e",
|
|
"cypress:canary": "cypress open --e2e -b chrome:canary",
|
|
"test": "cypress run --browser chrome",
|
|
"test:unit": "jest --coverage",
|
|
"serve": "npx live-server --port=9090 --no-browser --ignore='.*,src,cypress,scripts'",
|
|
"start": "npm run build:dev & npm run serve"
|
|
},
|
|
"packageManager": "yarn@1.22.22",
|
|
"devDependencies": {
|
|
"@rollup/plugin-terser": "^0.4.4",
|
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
"@types/jest": "^29.5.2",
|
|
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
"@typescript-eslint/parser": "^8.43.0",
|
|
"cypress": "^13.16.1",
|
|
"cypress-image-snapshot": "^4.0.1",
|
|
"eslint": "^9.35.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-prettier": "^5.2.1",
|
|
"glob": "^11.0.0",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"prettier": "^3.4.2",
|
|
"rollup": "^4.50.1",
|
|
"rollup-plugin-dts": "^6.1.0",
|
|
"rollup-plugin-web-worker-loader": "^1.7.0",
|
|
"ts-jest": "^29.1.1",
|
|
"typescript": "^5.9.2"
|
|
}
|
|
} |