Skip to content

Commit

Permalink
upgrade to yarn 4
Browse files Browse the repository at this point in the history
  • Loading branch information
dsiu committed Dec 22, 2023
1 parent 52e9af1 commit 57c3bac
Show file tree
Hide file tree
Showing 5 changed files with 3,718 additions and 2,317 deletions.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@dsiu/rescript-stdlib-fp",
"version": "0.0.1",
"author": "Danny Siu <danny.siu@gmail.com>",
"packageManager": "yarn@4.0.2",
"scripts": {
"clean": "rescript clean -with-deps",
"build": "rescript build",
Expand All @@ -19,13 +20,13 @@
],
"type": "module",
"dependencies": {
"@rescript/std": "11.0.0-rc.8",
"@rescript/core": "^0.6.0 || next",
"@greenlabs/garter": "github:green-labs/garter#main"
"@greenlabs/garter": "github:green-labs/garter#main",
"@rescript/core": "^0.6.0",
"@rescript/std": "11.0.0-rc.8"
},
"peerDependencies": {
"rescript": "^10.1.0 || ^11.0.0-rc.8 || next",
"@rescript/core": "^0.6.0 || next"
"@rescript/core": "^0.6.0",
"rescript": "^11.0.0-rc.8"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
Expand Down
4 changes: 2 additions & 2 deletions src/Stdlib_Array.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function uncons(xs) {

}

function singleon(__x) {
function singleton(__x) {
return Core__Array.make(1, __x);
}

Expand Down Expand Up @@ -322,7 +322,7 @@ export {
tail ,
init ,
uncons ,
singleon ,
singleton ,
take ,
takeExactly ,
takeWhile ,
Expand Down
2 changes: 1 addition & 1 deletion src/Stdlib_Array.res
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let uncons = xs =>
| _ => Some((getUnsafe(xs, 0), sliceToEnd(xs, ~start=1)))
}

let singleon = make(_, ~length=1)
let singleton = make(_, ~length=1)

let take = (xs, n) => {
let l = length(xs)
Expand Down
Loading

0 comments on commit 57c3bac

Please sign in to comment.