Skip to content

Commit

Permalink
Update now@17 (#14)
Browse files Browse the repository at this point in the history
* Updated Now CLI

* Fixed tests

* Remove -c option from now dev

* Add token to now dev test

* Update deno
  • Loading branch information
lucacasonato authored Feb 8, 2020
1 parent c407cc2 commit 312c0cb
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 224 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
os: ['ubuntu-latest']
node: ['12.x']
deno: ['0.31.0']
deno: ['0.32.0']
fail-fast: false
runs-on: ${{ matrix.os }}
name: build-${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test({
name: 'deploy to now',
async fn() {
const proc = Deno.run({
args: runNow.concat('-t', Deno.env()['NOW_TOKEN']),
args: runNow.concat('-c', '-t', Deno.env()['NOW_TOKEN']),
cwd: join(Deno.cwd(), 'example'),
stdout: 'piped',
stderr: 'piped',
Expand All @@ -36,7 +36,7 @@ if (!isWin) {
name: 'run on now dev',
async fn() {
const proc = Deno.run({
args: runNow.concat('dev'),
args: runNow.concat('dev', '-t', Deno.env()['NOW_TOKEN']),
cwd: join(Deno.cwd(), 'example'),
stdout: 'inherit',
stderr: 'inherit',
Expand Down
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.now
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"command-exists": "^1.2.8",
"execa": "^1.0.0",
"fs-extra": "^7.0.1",
"now": "^16.4.4",
"now": "^17.0.3",
"which": "^2.0.2"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'path';

export const getWorkPath = (workPath: string, entrypoint: string) => path.join(workPath, ".now", entrypoint)
export const getWorkPath = (workPath: string, entrypoint: string) =>
path.join(workPath, '.now', 'builders', 'now-deno', entrypoint);
Loading

0 comments on commit 312c0cb

Please sign in to comment.