Skip to content

Commit

Permalink
(breaking) fix build system and ESM/CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 15, 2024
1 parent d32ef05 commit 315edea
Show file tree
Hide file tree
Showing 12 changed files with 254 additions and 118 deletions.
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"presets": [ "@babel/preset-env" ],
"plugins": [
["@babel/plugin-proposal-unicode-property-regex", { "useUnicodeFlag": true } ]
]
["@babel/plugin-proposal-unicode-property-regex", { "useUnicodeFlag": true } ],
"@babel/plugin-transform-async-to-generator"
],
"exclude": "node_modules/**"
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 1.0.0-beta.18
### Breaking
* change undocumented arguments to `lips.exec` into an object
* change default export into named exports in ES Module
### Features
* add R7RS `guard` macro
* add R7RS `parameterize` and `make-parameter`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![npm](https://img.shields.io/badge/npm-1.0.0%E2%80%93beta.17.3-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
![1.0.0 Complete](https://img.shields.io/github/milestones/progress-percent/jcubic/lips/1?label=1.0.0%20Complete)
[![Build and test](https://github.com/jcubic/lips/actions/workflows/build.yaml/badge.svg?branch=devel&event=push)](https://github.com/jcubic/lips/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&2e7e0b1862a2305e742516ca7b9b78fa)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&0d64da01024c8309dbef946ddb8c1571)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Join Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jcubic/lips)
![NPM Download Count](https://img.shields.io/npm/dm/@jcubic/lips)
![JSDelivr Download count](https://img.shields.io/jsdelivr/npm/hm/@jcubic/lips)
Expand Down
11 changes: 4 additions & 7 deletions bin/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ const options = lily(process.argv.slice(2), { boolean });

const quiet = options.q || options.quiet;

import lips from '../src/lips.js';
import lips_dist from '../dist/lips.esm.js';

const { version, date } = lips_dist;

const {
import {
exec,
compile,
parse,
Expand All @@ -35,7 +30,9 @@ const {
env,
banner,
InputPort,
OutputPort } = lips;
OutputPort
} from '../src/lips.js';
import { version, date } from '../dist/lips.esm.js';

import fs from 'fs';
import os from 'os';
Expand Down
74 changes: 39 additions & 35 deletions dist/lips.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/lips.esm.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 315edea

Please sign in to comment.