Library to convert a JSON representation of a MIDI file to an encoded binary MIDI file.
This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
JSR Score
100%
Published
3 months ago (1.1.1)
import * as path from 'node:path'; /// <reference types='vitest' /> import { defineConfig } from './vite'; import dts from './vite-plugin-dts'; export default defineConfig({ root: __dirname, cacheDir: '../../node_modules/.vite/packages/json-to-midi', plugins: [ dts({ entryRoot: 'src', tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'), }), ], build: { outDir: './dist', emptyOutDir: true, reportCompressedSize: true, commonjsOptions: { transformMixedEsModules: true, }, lib: { entry: 'src/index.ts', name: 'json-to-midi', fileName: 'index', formats: ['es', 'cjs'], }, rollupOptions: { external: ['node:worker_threads', 'node:events'], }, }, test: { watch: false, globals: true, environment: 'node', include: ['test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], reporters: ['default'], coverage: { reportsDirectory: '../../coverage/packages/json-to-midi', provider: 'v8', }, }, });