8000 Update tfjs to 0.0.5, which depends on tfjs-core 0.0.2 by dsmilkov · Pull Request #12 · tensorflow/tfjs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update tfjs to 0.0.5, which depends on tfjs-core 0.0.2 #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
8000 Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tensorflow/tfjs",
"version": "0.0.4",
"version": "0.0.5",
"description": "An open-source machine learning framework.",
"private": false,
"main": "dist/index",
Expand All @@ -24,7 +24,7 @@
"build-npm": "./scripts/build-npm.sh"
},
"dependencies": {
"@tensorflow/tfjs-core": "0.0.1",
"@tensorflow/tfjs-core": "0.0.2",
"@tensorflow/tfjs-layers": "0.0.5"
}
}
19 changes: 17 additions & 2 deletions scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,28 @@
# Before you run this script, do this:
# 1) Update the version in package.json
# 2) Run ./scripts/make-version from the base dir of the project.
# 3) Commit to the master branch.
# 3) Run `yarn` to update `yarn.lock`, in case you updated dependencies
# 4) Commit to the master branch.

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

set -e

BRANCH=`git rev-parse --abbrev-ref HEAD`
ORIGIN=`git config --get remote.origin.url`

if [ "$BRANCH" != "master" ]; then
echo "Error: Switch to the master branch before publishing."
exit
fi

if [ "$ORIGIN" != "https://github.com/tensorflow/tfjs.git" ]; then
echo "Error: Switch to the main repo (tensorflow/tfjs) before publishing."
exit
fi

yarn build-npm
./scripts/make-version # This is for safety in case you forgot to do 2).
npm publish
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @license See the LICENSE file. */

// This code is auto-generated, do not modify this file!
const version = '0.0.4';
const version = '0.0.5';
export {version};
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# yarn lockfile v1


"@tensorflow/tfjs-core@0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.0.1.tgz#087be00020ed2e581c9e35dea2ca8dd2be537707"
"@tensorflow/tfjs-core@0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.0.2.tgz#3275ec114db4cc89ca729ffad67a25849236aa61"
dependencies:
seedrandom "~2.4.3"
utf8 "~2.1.2"
Expand Down
0