add webaudio cjs + esm build task

This commit is contained in:
Felix Roos 2022-11-08 23:16:24 +01:00
parent 3ec2fc6030
commit 431e1b87bd
2 changed files with 24 additions and 2 deletions

View file

@ -2,13 +2,16 @@
"name": "@strudel.cycles/webaudio",
"version": "0.3.2",
"description": "Web Audio helpers for Strudel",
"main": "index.mjs",
"main": "dist/index.cjs.mjs",
"module": "dist/index.es.js",
"type": "module",
"directories": {
"example": "examples"
},
"scripts": {
"example": "npx parcel examples/repl.html"
"example": "npx parcel examples/repl.html",
"build": "vite build",
"prepublish": "npm run build"
},
"repository": {
"type": "git",