Skip to content

Commit 2dfb446

Browse files
authored
Merge pull request #117 from antmendoza/added-schemaVersion-package
changed package version and added schema version to package json
2 parents de370c6 + af73d56 commit 2dfb446

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@severlessworkflow/sdk-typescript",
3-
"version": "0.6.1",
3+
"version": "1.0.0",
4+
"schemaVersion": "0.6",
45
"description": "Typescript SDK for Serverless Workflow Specification",
56
"main": "umd/index.umd.min.js",
67
"browser": "umd/index.umd.min.js",

Diff for: tools/download-schemas.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { promises as fsPromises } from 'fs';
33
import * as path from 'path';
44
import { URL } from 'url';
55
import yargs from 'yargs';
6-
import { version } from '../package.json';
6+
import { schemaVersion } from '../package.json';
77
import { mergeDefinitions, mergeSchemas, reset } from './utils';
88
const { writeFile, mkdir } = fsPromises;
99

@@ -44,7 +44,6 @@ const download = async (schemaUrl: URL, destDir: string): Promise<void> => {
4444
};
4545

4646
const argv = yargs(process.argv.slice(2)).argv;
47-
const schemaVersion = `${version.split('.').slice(0, -1).join('.')}`;
4847
const schemaUrl: URL = new URL(
4948
(argv.url as string) || `https://serverlessworkflow.io/schemas/${schemaVersion}/workflow.json`
5049
);

0 commit comments

Comments
 (0)