rename mondo package to mondolang

This commit is contained in:
Felix Roos 2025-05-02 16:20:23 +02:00
parent 4208c79c09
commit 607a6121bc
No known key found for this signature in database
5 changed files with 8 additions and 4 deletions

View file

@ -11,7 +11,7 @@ more info:
## Example Usage ## Example Usage
```js ```js
import { MondoRunner } from 'mondo' import { MondoRunner } from 'mondolang'
// define our library of functions and variables // define our library of functions and variables
let lib = { let lib = {
add: (a, b) => a + b, add: (a, b) => a + b,

View file

@ -1,5 +1,5 @@
{ {
"name": "mondo", "name": "mondolang",
"version": "1.1.0", "version": "1.1.0",
"description": "a language for functional composition that translates to js", "description": "a language for functional composition that translates to js",
"main": "mondo.mjs", "main": "mondo.mjs",

View file

@ -13,7 +13,7 @@ import {
silence, silence,
} from '@strudel/core'; } from '@strudel/core';
import { registerLanguage } from '@strudel/transpiler'; import { registerLanguage } from '@strudel/transpiler';
import { MondoRunner } from '../mondo/mondo.mjs'; import { MondoRunner } from 'mondolang';
const tail = (friend, pat) => pat.fmap((a) => (b) => (Array.isArray(a) ? [...a, b] : [a, b])).appLeft(friend); const tail = (friend, pat) => pat.fmap((a) => (b) => (Array.isArray(a) ? [...a, b] : [a, b])).appLeft(friend);

View file

@ -33,7 +33,8 @@
"homepage": "https://github.com/tidalcycles/strudel#readme", "homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": { "dependencies": {
"@strudel/core": "workspace:*", "@strudel/core": "workspace:*",
"@strudel/transpiler": "workspace:*" "@strudel/transpiler": "workspace:*",
"mondolang": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"mondo": "*", "mondo": "*",

3
pnpm-lock.yaml generated
View file

@ -364,6 +364,9 @@ importers:
'@strudel/transpiler': '@strudel/transpiler':
specifier: workspace:* specifier: workspace:*
version: link:../transpiler version: link:../transpiler
mondolang:
specifier: workspace:*
version: link:../mondo
devDependencies: devDependencies:
mondo: mondo:
specifier: '*' specifier: '*'