@thi.ng/pointfree-lang 2.2.65 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/bin/pointfree +10 -2
- package/cli.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-
|
|
3
|
+
- **Last updated**: 2025-02-11T10:30:07Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -11,6 +11,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
11
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
12
|
and/or version bumps of transitive dependencies.
|
|
13
13
|
|
|
14
|
+
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.3.0) (2025-02-11)
|
|
15
|
+
|
|
16
|
+
#### 🚀 Features
|
|
17
|
+
|
|
18
|
+
- update CLI wrapper ([9de9de2](https://github.com/thi-ng/umbrella/commit/9de9de2))
|
|
19
|
+
- check if `bun` is available, otherwise fallback to `node`
|
|
20
|
+
|
|
14
21
|
### [2.2.38](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.2.38) (2024-06-21)
|
|
15
22
|
|
|
16
23
|
#### ♻️ Refactoring
|
package/bin/pointfree
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
# https://stackoverflow.com/a/246128/294515
|
|
4
4
|
SOURCE="${BASH_SOURCE[0]}"
|
|
5
|
-
while [ -
|
|
5
|
+
while [ -L "$SOURCE" ]; do
|
|
6
6
|
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
|
7
7
|
SOURCE="$(readlink "$SOURCE")"
|
|
8
8
|
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
9
9
|
done
|
|
10
10
|
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
|
11
|
+
DIR="$(dirname $DIR)"
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
# prefer using bun
|
|
14
|
+
if [ -x "$(command -v bun)" ]; then
|
|
15
|
+
CMD=bun
|
|
16
|
+
else
|
|
17
|
+
CMD=node
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
/usr/bin/env $CMD "$DIR/cli.js" "$DIR" "$@"
|
package/cli.js
CHANGED
|
@@ -4,9 +4,9 @@ import { readJSON, readText, writeFile } from "@thi.ng/file-io";
|
|
|
4
4
|
import { LogLevel } from "@thi.ng/logger";
|
|
5
5
|
import { ensureStack } from "@thi.ng/pointfree";
|
|
6
6
|
import { readFileSync, readdirSync } from "node:fs";
|
|
7
|
-
import {
|
|
7
|
+
import { join } from "node:path";
|
|
8
8
|
import { ffi, run, runU } from "./runtime.js";
|
|
9
|
-
const PKG = readJSON(
|
|
9
|
+
const PKG = readJSON(join(process.argv[2], "package.json"));
|
|
10
10
|
const CMD = {
|
|
11
11
|
desc: "",
|
|
12
12
|
opts: {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/pointfree-lang",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@thi.ng/api": "^8.11.19",
|
|
47
|
-
"@thi.ng/args": "^2.3.
|
|
47
|
+
"@thi.ng/args": "^2.3.58",
|
|
48
48
|
"@thi.ng/bench": "^3.6.12",
|
|
49
49
|
"@thi.ng/errors": "^2.5.25",
|
|
50
|
-
"@thi.ng/file-io": "^2.1.
|
|
51
|
-
"@thi.ng/logger": "^3.0
|
|
50
|
+
"@thi.ng/file-io": "^2.1.26",
|
|
51
|
+
"@thi.ng/logger": "^3.1.0",
|
|
52
52
|
"@thi.ng/pointfree": "^3.1.101"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"parent": "@thi.ng/pointfree",
|
|
111
111
|
"year": 2018
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "035e34d5cbc5d1a7658ad9be0a1db160cee9ba52\n"
|
|
114
114
|
}
|