-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
309 additions
and
160 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,26 @@ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
const { | ||
name, | ||
version, | ||
description, | ||
author, | ||
license, | ||
repository, | ||
keywords | ||
} = require("../../../package.json"); | ||
const { name, version, description, author, license, repository, keywords } = require("../../../package.json"); | ||
const { dependencies } = require("../../../lib/package.json"); | ||
|
||
const packageJson = JSON.stringify( | ||
{ | ||
name, | ||
version, | ||
description, | ||
author, | ||
license, | ||
repository, | ||
keywords, | ||
dependencies, | ||
files: [ | ||
"src", | ||
"bin", | ||
"bsconfig.json", | ||
"postinstall.js", | ||
], | ||
scripts: { | ||
postinstall: "node ./postinstall.js" | ||
} | ||
}, | ||
null, | ||
2 | ||
{ | ||
name, | ||
version, | ||
description, | ||
author, | ||
license, | ||
repository, | ||
keywords, | ||
dependencies, | ||
files: ["src", "bin", "rescript.json", "postinstall.js"], | ||
scripts: { | ||
postinstall: "node ./postinstall.js", | ||
}, | ||
}, | ||
null, | ||
2, | ||
); | ||
|
||
fs.writeFileSync( | ||
path.join(__dirname, "..", "..", "..", "_release", "package.json"), | ||
packageJson, | ||
{ encoding: "utf8" } | ||
); | ||
fs.writeFileSync(path.join(__dirname, "..", "..", "..", "_release", "package.json"), packageJson, { encoding: "utf8" }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
(lang dune 2.6) | ||
(name re-formality-ppx) | ||
(name re-formality-ppx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(lang dune 2.6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
(env | ||
(static | ||
(flags | ||
(:standard -ccopt -static)))) | ||
|
||
(executable | ||
(package re-formality-ppx) | ||
(name bin) | ||
(public_name re-formality-ppx) | ||
(libraries re-formality-ppx.lib)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
opam-version: "2.0" | ||
name: "re-formality-ppx" | ||
version: "4.0.0-beta.20" | ||
synopsis: "Form validation tool for @rescript/react" | ||
description: """ | ||
Form validation tool for @rescript/react | ||
""" | ||
maintainer: "Alex Fedoseev <[email protected]>" | ||
authors: "Alex Fedoseev <[email protected]>" | ||
license: "MIT" | ||
homepage: "https://github.com/MinimaHQ/re-formality.git" | ||
bug-reports: "https://github.com/MinimaHQ/re-formality/issues" | ||
dev-repo: "git+https://github.com/MinimaHQ/re-formality.git" | ||
depends: [ | ||
"ocaml" { = "4.14.1" } | ||
"dune" { = "3.11.1" } | ||
"ppxlib" { = "0.30.0" } | ||
"alcotest" { = "1.7.0" } | ||
] | ||
build: [ | ||
["dune" "build" "-p" name "-j" jobs] | ||
] |