mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
csound build
This commit is contained in:
parent
555fe0b629
commit
cde23bbf98
@ -1,10 +1,14 @@
|
||||
{
|
||||
"name": "@strudel.cycles/csound",
|
||||
"version": "0.5.1",
|
||||
"version": "0.6.0",
|
||||
"description": "csound bindings for strudel",
|
||||
"main": "csound.mjs",
|
||||
"main": "index.mjs",
|
||||
"publishConfig": {
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"No tests present.\" && exit 0"
|
||||
"build": "vite build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -27,8 +31,11 @@
|
||||
},
|
||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||
"dependencies": {
|
||||
"@csound/browser": "^6.18.3",
|
||||
"@strudel.cycles/core": "workspace:*",
|
||||
"@strudel.cycles/webaudio": "workspace:*",
|
||||
"@csound/browser": "^6.18.3"
|
||||
"@strudel.cycles/webaudio": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^3.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
19
packages/csound/vite.config.js
Normal file
19
packages/csound/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',
|
||||
},
|
||||
});
|
||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@ -65,10 +65,13 @@ importers:
|
||||
'@csound/browser': ^6.18.3
|
||||
'@strudel.cycles/core': workspace:*
|
||||
'@strudel.cycles/webaudio': workspace:*
|
||||
vite: ^3.2.2
|
||||
dependencies:
|
||||
'@csound/browser': 6.18.5
|
||||
'@strudel.cycles/core': link:../core
|
||||
'@strudel.cycles/webaudio': link:../webaudio
|
||||
devDependencies:
|
||||
vite: 3.2.5
|
||||
|
||||
packages/embed:
|
||||
specifiers: {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user