Skip to content

Commit e68a66a

Browse files
authored
Update tfjs to 0.0.5, which depends on tfjs-core 0.0.2 (tensorflow#12)
1 parent e52a196 commit e68a66a

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tensorflow/tfjs",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "An open-source machine learning framework.",
55
"private": false,
66
"main": "dist/index",
@@ -24,7 +24,7 @@
2424
"build-npm": "./scripts/build-npm.sh"
2525
},
2626
"dependencies": {
27-
"@tensorflow/tfjs-core": "0.0.1",
27+
"@tensorflow/tfjs-core": "0.0.2",
2828
"@tensorflow/tfjs-layers": "0.0.5"
2929
}
3030
}

scripts/publish-npm.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,28 @@
1717
# Before you run this script, do this:
1818
# 1) Update the version in package.json
1919
# 2) Run ./scripts/make-version from the base dir of the project.
20-
# 3) Commit to the master branch.
20+
# 3) Run `yarn` to update `yarn.lock`, in case you updated dependencies
21+
# 4) Commit to the master branch.
2122

2223
# Then:
23-
# 4) Run this script as `./scripts/publish-npm.sh` from the project base dir.
24+
# 5) Checkout the master branch of this repo.
25+
# 6) Run this script as `./scripts/publish-npm.sh` from the project base dir.
2426

2527
set -e
2628

29+
BRANCH=`git rev-parse --abbrev-ref HEAD`
30+
ORIGIN=`git config --get remote.origin.url`
31+
32+
if [ "$BRANCH" != "master" ]; then
33+
echo "Error: Switch to the master branch before publishing."
34+
exit
35+
fi
36+
37+
if [ "$ORIGIN" != "https://github.com/tensorflow/tfjs.git" ]; then
38+
echo "Error: Switch to the main repo (tensorflow/tfjs) before publishing."
39+
exit
40+
fi
41+
2742
yarn build-npm
2843
./scripts/make-version # This is for safety in case you forgot to do 2).
2944
npm publish

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @license See the LICENSE file. */
22

33
// This code is auto-generated, do not modify this file!
4-
const version = '0.0.4';
4+
const version = '0.0.5';
55
export {version};

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# yarn lockfile v1
33

44

5-
"@tensorflow/tfjs-core@0.0.1":
6-
version "0.0.1"
7-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.0.1.tgz#087be00020ed2e581c9e35dea2ca8dd2be537707"
5+
"@tensorflow/tfjs-core@0.0.2":
6+
version "0.0.2"
7+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.0.2.tgz#3275ec114db4cc89ca729ffad67a25849236aa61"
88
dependencies:
99
seedrandom "~2.4.3"
1010
utf8 "~2.1.2"

0 commit comments

Comments
 (0)