|
26 | 26 | "typings": "dist/alphaTab.d.ts",
|
27 | 27 | "exports": {
|
28 | 28 | ".": {
|
| 29 | + "types": "./dist/alphaTab.d.ts", |
29 | 30 | "import": "./dist/alphaTab.mjs",
|
30 |
| - "require": "./dist/alphaTab.js", |
31 |
| - "types": "./dist/alphaTab.d.ts" |
| 31 | + "require": "./dist/alphaTab.js" |
32 | 32 | },
|
33 | 33 | "./webpack": {
|
| 34 | + "types": "./dist/alphaTab.webpack.d.ts", |
34 | 35 | "import": "./dist/alphaTab.webpack.mjs",
|
35 |
| - "require": "./dist/alphaTab.webpack.js", |
36 |
| - "types": "./dist/alphaTab.webpack.d.ts" |
| 36 | + "require": "./dist/alphaTab.webpack.js" |
37 | 37 | },
|
38 | 38 | "./vite": {
|
| 39 | + "types": "./dist/alphaTab.vite.d.ts", |
39 | 40 | "import": "./dist/alphaTab.vite.mjs",
|
40 |
| - "require": "./dist/alphaTab.vite.js", |
41 |
| - "types": "./dist/alphaTab.vite.d.ts" |
| 41 | + "require": "./dist/alphaTab.vite.js" |
42 | 42 | },
|
43 | 43 | "./soundfont/*": "./dist/soundfont/*",
|
44 | 44 | "./font/*": "./dist/font/*"
|
|
47 | 47 | "node": ">=6.0.0"
|
48 | 48 | },
|
49 | 49 | "scripts": {
|
50 |
| - "clean": "rimraf dist && rimraf .rollup.cache", |
| 50 | + "clean": "rimraf dist", |
51 | 51 | "lint": "eslint .",
|
52 |
| - "start": "node scripts/setup-playground.js && npm run generate-typescript && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript -w", |
| 52 | + "start": "node scripts/setup-playground.js && npm run generate-typescript && vite", |
53 | 53 | "generate-typescript": "rimraf src/generated && tsx src.compiler/typescript/AlphaTabGenerator.ts",
|
54 | 54 | "generate-csharp": "npm run generate-typescript && tsx src.compiler/csharp/CSharpTranspiler.ts --outDir dist/lib.csharp",
|
55 | 55 | "generate-kotlin": "npm run generate-typescript && tsx src.compiler/kotlin/KotlinTranspiler.ts --outDir dist/lib.kotlin",
|
56 |
| - "build": "npm run generate-typescript && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript", |
| 56 | + "build": "npm run generate-typescript && npm run build-web-full", |
| 57 | + "build-web-full": "npm run build-web && npm run build-vite && npm run build-webpack", |
| 58 | + "build-web": "vite build --mode esm && vite build --mode umd", |
| 59 | + "build-vite": "vite build --mode vite-cjs && vite build --mode vite-esm", |
| 60 | + "build-webpack": "vite build --mode webpack-cjs && vite build --mode webpack-esm", |
57 | 61 | "build-csharp": "npm run generate-csharp && cd src.csharp && dotnet build -c Release",
|
58 | 62 | "build-kotlin": "npm run generate-kotlin && node scripts/gradlew.mjs assembleRelease",
|
59 | 63 | "test": "mocha",
|
|
67 | 71 | "@fontsource/noto-sans": "^5.1.1",
|
68 | 72 | "@fontsource/noto-serif": "^5.1.1",
|
69 | 73 | "@fortawesome/fontawesome-free": "^6.7.2",
|
| 74 | + "@microsoft/api-extractor": "^7.51.1", |
70 | 75 | "@popperjs/core": "^2.11.8",
|
71 | 76 | "@rollup/plugin-commonjs": "^28.0.2",
|
72 | 77 | "@rollup/plugin-node-resolve": "^16.0.0",
|
|
94 | 99 | "opener": "^1.5.2",
|
95 | 100 | "prettier": "^3.5.2",
|
96 | 101 | "rimraf": "^6.0.1",
|
97 |
| - "rollup": "^4.34.8", |
98 | 102 | "rollup-plugin-copy": "^3.5.0",
|
99 | 103 | "rollup-plugin-dts": "^6.1.1",
|
100 | 104 | "rollup-plugin-license": "^3.6.0",
|
101 | 105 | "terser": "^5.39.0",
|
102 | 106 | "tslib": "^2.8.1",
|
103 | 107 | "tsx": "^4.19.3",
|
104 | 108 | "typescript": "^5.7.3",
|
105 |
| - "vite": "^6.1.1", |
| 109 | + "vite": "^6.2.0", |
| 110 | + "vite-tsconfig-paths": "^5.1.4", |
106 | 111 | "webpack": "^5.98.0",
|
107 | 112 | "webpack-cli": "^6.0.1"
|
108 | 113 | },
|
|
0 commit comments