From 027307bf9f56fc22aa43b63cb5e19f3f24d1f3da Mon Sep 17 00:00:00 2001 From: Alfonso Garcia-Caro Date: Thu, 21 Feb 2019 22:52:20 +0100 Subject: [PATCH] Publish 2.2.0-beta-010 --- build.fsx | 6 +++++- src/Fable.Cli/Util.fs | 2 +- src/fable-compiler-js/RELEASE_NOTES.md | 4 ++++ src/fable-compiler-js/package-lock.json | 8 ++++---- src/fable-compiler-js/package.json | 4 ++-- src/fable-compiler/RELEASE_NOTES.md | 2 +- src/fable-compiler/package-lock.json | 2 +- src/fable-compiler/package.json | 2 +- src/fable-standalone/RELEASE_NOTES.md | 2 +- src/fable-standalone/package.json | 2 +- 10 files changed, 21 insertions(+), 13 deletions(-) diff --git a/build.fsx b/build.fsx index e9ea966893..394e01b1ab 100644 --- a/build.fsx +++ b/build.fsx @@ -105,7 +105,10 @@ let buildStandalone() = getFullPathsInDirectoryRecursively libraryTarget |> Array.filter (fun file -> file.EndsWith(".js")) |> Array.iter (fun file -> - reg.Replace(readFile file, "import $1.js$2") + reg.Replace(readFile file, fun m -> + let fst = m.Groups.[1].Value + if fst.EndsWith(".js") then m.Value + else sprintf "import %s.js%s" fst m.Groups.[2].Value) |> writeFile file) // Bump version @@ -151,6 +154,7 @@ let githubRelease() = try let ghreleases: GhRealeases = JsInterop.importAll "ghreleases" let! version, notes = Publish.loadReleaseVersionAndNotes "src/fable-compiler" + run <| sprintf "git commit -am \"Release %s\" && git push" version let! res = ghreleases.create(user, token, "fable-compiler", "Fable", version, String.concat "\n" notes) |> Async.AwaitPromise printfn "Github release %s created successfully" version with ex -> diff --git a/src/Fable.Cli/Util.fs b/src/Fable.Cli/Util.fs index 6bb6e117f8..bcaa84b395 100644 --- a/src/Fable.Cli/Util.fs +++ b/src/Fable.Cli/Util.fs @@ -2,7 +2,7 @@ namespace Fable.Cli module Literals = - let [] VERSION = "2.2.0-beta-008" + let [] VERSION = "2.2.0-beta-010" let [] CORE_VERSION = "2.1.0" let [] DEFAULT_PORT = 61225 let [] FORCE = "force:" diff --git a/src/fable-compiler-js/RELEASE_NOTES.md b/src/fable-compiler-js/RELEASE_NOTES.md index 36a087072d..f065e69c66 100644 --- a/src/fable-compiler-js/RELEASE_NOTES.md +++ b/src/fable-compiler-js/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +### 1.0.0-beta-002 + +* Added project options parsing @ncave + ### 1.0.0-beta-001 * Beta release @ncave diff --git a/src/fable-compiler-js/package-lock.json b/src/fable-compiler-js/package-lock.json index 7addc1786f..c512b7d17c 100644 --- a/src/fable-compiler-js/package-lock.json +++ b/src/fable-compiler-js/package-lock.json @@ -1,6 +1,6 @@ { "name": "fable-compiler-js", - "version": "1.0.0-beta-001", + "version": "1.0.0-beta-002", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -245,9 +245,9 @@ "integrity": "sha512-PVDgurXItCEYLjzJAQRls/e5mfXsPbo7LrGIj5m2Iy8gztQMXHI4i1Tc3rY+kLAcLd9wgMGgaMBxAbahwQclWA==" }, "fable-standalone": { - "version": "1.0.0-beta-004", - "resolved": "https://registry.npmjs.org/fable-standalone/-/fable-standalone-1.0.0-beta-004.tgz", - "integrity": "sha512-Vhu8lFhAcSKFgplWkEw2TIb3hmNdVflZWzGHemeumkwrvVohWKJ3vn/raT3CHgtNCur1qd7FFc9qouI4Qz0+oA==" + "version": "1.0.0-beta-007", + "resolved": "https://registry.npmjs.org/fable-standalone/-/fable-standalone-1.0.0-beta-007.tgz", + "integrity": "sha512-fyc2lbpGdWSUOfagn8U12UIxwfLUAZeJoPJUJqRe+ZifzYbxvu9/NPo9A/JTxrOpXmLtJnofFoKIdlnxe0a+sA==" }, "globals": { "version": "11.10.0", diff --git a/src/fable-compiler-js/package.json b/src/fable-compiler-js/package.json index aeceb997b7..9ecd126296 100644 --- a/src/fable-compiler-js/package.json +++ b/src/fable-compiler-js/package.json @@ -1,6 +1,6 @@ { "name": "fable-compiler-js", - "version": "1.0.0-beta-001", + "version": "1.0.0-beta-002", "main": "index.js", "bin": { "fable": "index.js" @@ -26,6 +26,6 @@ "@babel/plugin-transform-modules-commonjs": "^7.2.0", "fable-babel-plugins": "^2.1.0", "fable-metadata": "^1.0.0-beta-002", - "fable-standalone": "^1.0.0-beta-004" + "fable-standalone": "^1.0.0-beta-007" } } diff --git a/src/fable-compiler/RELEASE_NOTES.md b/src/fable-compiler/RELEASE_NOTES.md index a804e19978..1ecd250cc7 100644 --- a/src/fable-compiler/RELEASE_NOTES.md +++ b/src/fable-compiler/RELEASE_NOTES.md @@ -1,4 +1,4 @@ -### 2.2.0-beta-008 +### 2.2.0-beta-010 * Anonymous records! diff --git a/src/fable-compiler/package-lock.json b/src/fable-compiler/package-lock.json index 82cb5d33a1..cd01187afb 100644 --- a/src/fable-compiler/package-lock.json +++ b/src/fable-compiler/package-lock.json @@ -1,6 +1,6 @@ { "name": "fable-compiler", - "version": "2.2.0-beta-008", + "version": "2.2.0-beta-010", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/fable-compiler/package.json b/src/fable-compiler/package.json index 67a2f2f085..dc8370b27e 100644 --- a/src/fable-compiler/package.json +++ b/src/fable-compiler/package.json @@ -1,6 +1,6 @@ { "name": "fable-compiler", - "version": "2.2.0-beta-008", + "version": "2.2.0-beta-010", "main": "dist/index.js", "description": "Fable compiler", "keywords": [ diff --git a/src/fable-standalone/RELEASE_NOTES.md b/src/fable-standalone/RELEASE_NOTES.md index b86b0be822..dba867fa99 100644 --- a/src/fable-standalone/RELEASE_NOTES.md +++ b/src/fable-standalone/RELEASE_NOTES.md @@ -1,4 +1,4 @@ -### 1.0.0-beta-005 +### 1.0.0-beta-007 * Anonymous records diff --git a/src/fable-standalone/package.json b/src/fable-standalone/package.json index d7a1e7b58e..86c5cb5733 100644 --- a/src/fable-standalone/package.json +++ b/src/fable-standalone/package.json @@ -1,6 +1,6 @@ { "name": "fable-standalone", - "version": "1.0.0-beta-005", + "version": "1.0.0-beta-007", "main": "dist/commonjs/index.js", "description": "Fable compiler", "keywords": [