mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 05:38:35 +00:00
tone build
This commit is contained in:
parent
f3da9d680d
commit
ffaa8f4ab3
@ -1,9 +1,16 @@
|
||||
{
|
||||
"name": "@strudel.cycles/tone",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.0",
|
||||
"description": "Tone.js API for strudel",
|
||||
"main": "index.mjs",
|
||||
"type": "module",
|
||||
"publishConfig": {
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||
@ -26,6 +33,7 @@
|
||||
"tone": "^14.7.77"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^3.2.2",
|
||||
"vitest": "^0.25.7"
|
||||
}
|
||||
}
|
||||
|
||||
19
packages/tone/vite.config.js
Normal file
19
packages/tone/vite.config.js
Normal file
@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { dependencies } from './package.json';
|
||||
import { resolve } from 'path';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [],
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'index.mjs'),
|
||||
formats: ['es', 'cjs'],
|
||||
fileName: (ext) => ({ es: 'index.mjs', cjs: 'index.js' }[ext]),
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [...Object.keys(dependencies)],
|
||||
},
|
||||
target: 'esnext',
|
||||
},
|
||||
});
|
||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@ -230,11 +230,13 @@ importers:
|
||||
specifiers:
|
||||
'@strudel.cycles/core': workspace:*
|
||||
tone: ^14.7.77
|
||||
vite: ^3.2.2
|
||||
vitest: ^0.25.7
|
||||
dependencies:
|
||||
'@strudel.cycles/core': link:../core
|
||||
tone: 14.7.77
|
||||
devDependencies:
|
||||
vite: 3.2.5
|
||||
vitest: 0.25.8
|
||||
|
||||
packages/transpiler:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user