From 7e8b7bdb53e839ef6b19dd3969ea84578977203c Mon Sep 17 00:00:00 2001 From: Eric Jizba Date: Thu, 2 Dec 2021 13:29:27 -0800 Subject: [PATCH] Update Node.js package.json templates for func init(#2853) --- .../StaticResources/javascriptPackage.json | 8 +++++--- .../StaticResources/package.json | 20 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Azure.Functions.Cli/StaticResources/javascriptPackage.json b/src/Azure.Functions.Cli/StaticResources/javascriptPackage.json index 8a0dc9c41..24d0f6a49 100644 --- a/src/Azure.Functions.Cli/StaticResources/javascriptPackage.json +++ b/src/Azure.Functions.Cli/StaticResources/javascriptPackage.json @@ -1,9 +1,11 @@ { "name": "", - "version": "", + "version": "1.0.0", "description": "", - "scripts" : { + "scripts": { + "start": "func start", "test": "echo \"No tests yet...\"" }, - "author": "" + "dependencies": {}, + "devDependencies": {} } diff --git a/src/Azure.Functions.Cli/StaticResources/package.json b/src/Azure.Functions.Cli/StaticResources/package.json index 1bfbb4a79..3ec7f52f1 100644 --- a/src/Azure.Functions.Cli/StaticResources/package.json +++ b/src/Azure.Functions.Cli/StaticResources/package.json @@ -1,19 +1,17 @@ { "name": "", - "version": "", - "scripts" : { + "version": "1.0.0", + "description": "", + "scripts": { "build": "tsc", - "build:production": "npm run prestart && npm prune --production", - "watch": "tsc --w", - "prestart": "npm run build && func extensions install", - "start:host": "func start", - "start": "npm-run-all --parallel start:host watch", + "watch": "tsc -w", + "prestart": "npm run build", + "start": "func start", "test": "echo \"No tests yet...\"" }, - "description": "", + "dependencies": {}, "devDependencies": { - "@azure/functions": "^1.0.1-beta1", - "npm-run-all": "^4.1.5", - "typescript": "^3.3.3" + "@azure/functions": "^2.0.0", + "typescript": "^4.0.0" } }