mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
tone build
This commit is contained in:
parent
f3da9d680d
commit
ffaa8f4ab3
@ -1,9 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "@strudel.cycles/tone",
|
"name": "@strudel.cycles/tone",
|
||||||
"version": "0.5.0",
|
"version": "0.6.0",
|
||||||
"description": "Tone.js API for strudel",
|
"description": "Tone.js API for strudel",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"publishConfig": {
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"module": "dist/index.mjs"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "vite build"
|
||||||
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||||
@ -26,6 +33,7 @@
|
|||||||
"tone": "^14.7.77"
|
"tone": "^14.7.77"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"vite": "^3.2.2",
|
||||||
"vitest": "^0.25.7"
|
"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:
|
specifiers:
|
||||||
'@strudel.cycles/core': workspace:*
|
'@strudel.cycles/core': workspace:*
|
||||||
tone: ^14.7.77
|
tone: ^14.7.77
|
||||||
|
vite: ^3.2.2
|
||||||
vitest: ^0.25.7
|
vitest: ^0.25.7
|
||||||
dependencies:
|
dependencies:
|
||||||
'@strudel.cycles/core': link:../core
|
'@strudel.cycles/core': link:../core
|
||||||
tone: 14.7.77
|
tone: 14.7.77
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
vite: 3.2.5
|
||||||
vitest: 0.25.8
|
vitest: 0.25.8
|
||||||
|
|
||||||
packages/transpiler:
|
packages/transpiler:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user