Skip to content

Commit 312c0cb

Browse files
authored
Update now@17 (#14)
* Updated Now CLI * Fixed tests * Remove -c option from now dev * Add token to now dev test * Update deno
1 parent c407cc2 commit 312c0cb

File tree

6 files changed

+192
-224
lines changed

6 files changed

+192
-224
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
os: ['ubuntu-latest']
1313
node: ['12.x']
14-
deno: ['0.31.0']
14+
deno: ['0.32.0']
1515
fail-fast: false
1616
runs-on: ${{ matrix.os }}
1717
name: build-${{ matrix.os }}

.github/workflows/tests.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test({
1212
name: 'deploy to now',
1313
async fn() {
1414
const proc = Deno.run({
15-
args: runNow.concat('-t', Deno.env()['NOW_TOKEN']),
15+
args: runNow.concat('-c', '-t', Deno.env()['NOW_TOKEN']),
1616
cwd: join(Deno.cwd(), 'example'),
1717
stdout: 'piped',
1818
stderr: 'piped',
@@ -36,7 +36,7 @@ if (!isWin) {
3636
name: 'run on now dev',
3737
async fn() {
3838
const proc = Deno.run({
39-
args: runNow.concat('dev'),
39+
args: runNow.concat('dev', '-t', Deno.env()['NOW_TOKEN']),
4040
cwd: join(Deno.cwd(), 'example'),
4141
stdout: 'inherit',
4242
stderr: 'inherit',

example/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.now

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"command-exists": "^1.2.8",
2727
"execa": "^1.0.0",
2828
"fs-extra": "^7.0.1",
29-
"now": "^16.4.4",
29+
"now": "^17.0.3",
3030
"which": "^2.0.2"
3131
},
3232
"devDependencies": {

src/util.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import path from 'path';
22

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

0 commit comments

Comments
 (0)