|
3 | 3 | "version": "0.6.0",
|
4 | 4 | "description": "Typescript SDK for Serverless Workflow Specification",
|
5 | 5 | "main": "umd/index.umd.min.js",
|
| 6 | + "browser": "umd/index.umd.min.js", |
6 | 7 | "module": "esm/index.esm.min.js",
|
7 |
| - "typings": "serverless-workflow-sdk.d.ts", |
| 8 | + "typings": "index.d.ts", |
8 | 9 | "scripts": {
|
9 | 10 | "rimraf": "npx rimraf",
|
| 11 | + "shx": "npx shx", |
10 | 12 | "tsc": "npx tsc",
|
11 | 13 | "ts-node": "npx ts-node",
|
12 |
| - "prebuild": "rimraf dist", |
13 |
| - "build": "rollup -c rollup.config.ts", |
14 |
| - "clean": "rimraf dist && rimraf out-tsc", |
15 |
| - "tools:download-schemas": "ts-node --project tsconfig.tools.json ./tools/download-schemas.ts", |
16 |
| - "tools:generate-definitions": "ts-node --project tsconfig.tools.json ./tools/generate-definitions.ts", |
17 |
| - "tools:generate-builders": "ts-node --project tsconfig.tools.json ./tools/generate-builders.ts", |
| 14 | + "clean": "npx rimraf dist && rimraf out-tsc", |
| 15 | + "tools:download-schemas": "npx ts-node --project ./tools/tsconfig.json ./tools/download-schemas.ts", |
| 16 | + "tools:generate-definitions": "npx ts-node --project ./tools/tsconfig.json ./tools/generate-definitions.ts", |
| 17 | + "tools:generate-builders": "npx ts-node --project ./tools/tsconfig.json ./tools/generate-builders.ts", |
18 | 18 | "update-code-base": "npm run tools:download-schemas && npm run tools:generate-definitions && npm run tools:generate-builders",
|
19 |
| - "pretest": "rimraf out-tsc", |
20 |
| - "test": "tsc --project tsconfig.spec.json && jasmine --config=./tests/support/jasmine.json" |
| 19 | + "pretest": "npx rimraf out-tsc", |
| 20 | + "test": "npx tsc --project ./tests/tsconfig.json && npx jasmine --config=./tests/support/jasmine.json", |
| 21 | + "prebuild": "npx rimraf dist", |
| 22 | + "build": "npx rollup -c rollup.config.ts", |
| 23 | + "postbuild":"npx shx cp ./package.json ./README.md ./LICENSE ./dist/", |
| 24 | + "verify-publish-directory": "node -e 'if (!process.cwd().endsWith(\"dist\")) { console.error(\"Packaging/Publishing should be done from ./dist/\"); process.exitCode = 1; } process.exit();'", |
| 25 | + "prepack": "npm run verify-publish-directory", |
| 26 | + "prepublish": "npm run verify-publish-directory" |
21 | 27 | },
|
22 | 28 | "dependencies": {
|
23 | 29 | "ajv": "^8.1.0",
|
|
42 | 48 | "rollup-plugin-sourcemaps": "^0.6.3",
|
43 | 49 | "rollup-plugin-terser": "^7.0.2",
|
44 | 50 | "rollup-plugin-typescript2": "^0.30.0",
|
| 51 | + "shx": "^0.3.3", |
45 | 52 | "ts-node": "^9.1.1",
|
46 | 53 | "typescript": "^4.2.4",
|
47 | 54 | "yargs": "^17.0.1"
|
|
59 | 66 | "url": "https://github.com/serverlessworkflow/sdk-typescript/issues"
|
60 | 67 | },
|
61 | 68 | "homepage": "https://serverlessworkflow.io",
|
62 |
| - "files": [ |
63 |
| - "dist/*" |
64 |
| - ], |
65 | 69 | "engines": {
|
66 | 70 | "node": ">=15.0",
|
67 | 71 | "npm": ">=7.0.0"
|
|
0 commit comments