Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

fix: ignore yarn cache when updating notebook package #19

Merged
merged 3 commits into from
Sep 13, 2019
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
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"clean": "rm -rf node_modules public vendor",
"data": "rm -rf public/data && mkdir -p public/data && node bin/download-data.js",
"deploy": "now",
"notebook": "rm -f vendor/notebook.tgz && mkdir -p vendor && curl -o vendor/notebook.tgz $npm_package_custom_notebook && yarn add --optional aaa_notebook@file:vendor/notebook.tgz",
"notebook": "rm -f vendor/*notebook.tgz && timestamp=$(date \"+%s\") && mkdir -p vendor && curl -o vendor/${timestamp}_notebook.tgz $npm_package_custom_notebook && yarn add --optional aaa_notebook@file:vendor/${timestamp}_notebook.tgz",
"notebook:comment": "echo \"In 'notebook' script above, timestamp is a hack to avoid using local cache - see https://github.com/yarnpkg/yarn/issues/2165. No need for that with npm.\"",
"preserve": "yarn build",
"serve": "http-server public/",
"setup": "yarn notebook && yarn && yarn data",
Expand Down Expand Up @@ -42,6 +43,6 @@
"rollup-plugin-terser": "^5.1.1"
},
"optionalDependencies": {
"aaa_notebook": "file:vendor/notebook.tgz"
"aaa_notebook": "file:vendor/1568386035_notebook.tgz"
}
}
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@
dependencies:
"@types/node" "*"

"aaa_notebook@file:vendor/notebook.tgz":
"aaa_notebook@file:vendor/1568386035_notebook.tgz":
version "562.0.0"
resolved "file:vendor/notebook.tgz#db8f871fcb18fd66cfa377fc0142f7cb4aa074e2"
resolved "file:vendor/1568386035_notebook.tgz#cc7ad21fd0e650c6006b9d4c413b84797de54a2f"

acorn@^7.0.0:
version "7.0.0"
Expand Down