@temporalio/create
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -15,2 +15,3 @@ #!/usr/bin/env node | ||
const typescriptVersion = '4.2.2'; | ||
const npm = /^win/.test(process.platform) ? 'npm.cmd' : 'npm'; | ||
const packageJsonBase = { | ||
@@ -154,4 +155,4 @@ version: '0.1.0', | ||
else { | ||
await subprocess_1.spawn('npm', ['install'], { cwd: root, stdio: 'inherit' }); | ||
await subprocess_1.spawn('npm', ['install', `temporalio@${temporalVersion}`], { cwd: root, stdio: 'inherit' }); | ||
await subprocess_1.spawn(npm, ['install'], { cwd: root, stdio: 'inherit' }); | ||
await subprocess_1.spawn(npm, ['install', `temporalio@${temporalVersion}`], { cwd: root, stdio: 'inherit' }); | ||
} | ||
@@ -158,0 +159,0 @@ } |
{ | ||
"name": "@temporalio/create", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Create a Temporal project from template", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "ccba912fc77cdf09bea49eae110d0be281a03a5d" | ||
"gitHead": "c97a03fabe6d5760b9f4800de496c721f0131684" | ||
} |
@@ -7,3 +7,3 @@ import { Connection } from '@temporalio/client'; | ||
const example = connection.workflow<Example>('example', { taskQueue: 'tutorial' }); | ||
const result = await example('Temporal'); | ||
const result = await example.start('Temporal'); | ||
console.log(result); // Hello, Temporal | ||
@@ -10,0 +10,0 @@ } |
@@ -5,3 +5,3 @@ import { Worker } from '@temporalio/worker'; | ||
// Automatically locate and register activities and workflows | ||
const worker = new Worker(__dirname); | ||
const worker = await Worker.create(__dirname); | ||
// Bind to the `tutorial` queue and start accepting tasks | ||
@@ -8,0 +8,0 @@ await worker.run('tutorial'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11881
273