|
6 | 6 | "targets": { |
7 | 7 | "build": { |
8 | 8 | "executor": "@nx/js:swc", |
9 | | - "outputs": ["{options.outputPath}"], |
10 | 9 | "options": { |
11 | | - "outputPath": "dist/presto-client", |
| 10 | + "assets": ["presto-client/*.md"], |
12 | 11 | "main": "presto-client/src/index.ts", |
13 | | - "tsConfig": "presto-client/tsconfig.lib.json", |
14 | | - "assets": ["presto-client/*.md"] |
| 12 | + "outputPath": "dist/presto-client", |
| 13 | + "tsConfig": "presto-client/tsconfig.lib.json" |
| 14 | + }, |
| 15 | + "outputs": ["{options.outputPath}"] |
| 16 | + }, |
| 17 | + "github": { |
| 18 | + "executor": "@jscutlery/semver:github", |
| 19 | + "options": { |
| 20 | + "draft": true, |
| 21 | + "generateNotes": true, |
| 22 | + "notes": "${notes}", |
| 23 | + "tag": "${tag}" |
15 | 24 | } |
16 | 25 | }, |
17 | 26 | "lint": { |
18 | 27 | "executor": "@nx/linter:eslint", |
19 | | - "outputs": ["{options.outputFile}"], |
20 | 28 | "options": { |
21 | 29 | "lintFilePatterns": ["presto-client/**/*.ts", "presto-client/package.json"] |
22 | | - } |
| 30 | + }, |
| 31 | + "outputs": ["{options.outputFile}"] |
23 | 32 | }, |
24 | | - "publish": { |
25 | | - "command": "node tools/scripts/publish.mjs presto-client {args.ver} {args.tag}", |
26 | | - "dependsOn": ["build", "lint", "test"] |
| 33 | + "npm": { |
| 34 | + "command": "node tools/scripts/npm.mjs presto-client ${version} ${tag}" |
27 | 35 | }, |
28 | 36 | "test": { |
29 | | - "executor": "@nx/jest:jest", |
30 | | - "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], |
31 | | - "options": { |
32 | | - "jestConfig": "presto-client/jest.config.ts", |
33 | | - "passWithNoTests": true |
34 | | - }, |
35 | 37 | "configurations": { |
36 | 38 | "ci": { |
37 | 39 | "ci": true, |
38 | 40 | "codeCoverage": true |
39 | 41 | } |
| 42 | + }, |
| 43 | + "executor": "@nx/jest:jest", |
| 44 | + "options": { |
| 45 | + "jestConfig": "presto-client/jest.config.ts", |
| 46 | + "passWithNoTests": true |
| 47 | + }, |
| 48 | + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"] |
| 49 | + }, |
| 50 | + "version": { |
| 51 | + "dependsOn": ["build", "lint", "test"], |
| 52 | + "executor": "@jscutlery/semver:version", |
| 53 | + "options": { |
| 54 | + "commitMessageFormat": "chore({projectName}): release ${version}", |
| 55 | + "postTargets": ["presto-client:github", "presto-client:npm"], |
| 56 | + "preset": "conventional", |
| 57 | + "push": true, |
| 58 | + "skipCommitTypes": ["build", "ci", "chore", "docs", "style", "test"] |
| 59 | + } |
| 60 | + }, |
| 61 | + "version-local": { |
| 62 | + "dependsOn": ["build", "lint", "test"], |
| 63 | + "executor": "@jscutlery/semver:version", |
| 64 | + "options": { |
| 65 | + "commitMessageFormat": "chore({projectName}): release ${version}", |
| 66 | + "postTargets": ["presto-client:npm"], |
| 67 | + "preset": "conventional", |
| 68 | + "push": false, |
| 69 | + "skipCommit": true, |
| 70 | + "skipCommitTypes": ["build", "ci", "chore", "docs", "style", "test"] |
40 | 71 | } |
41 | 72 | } |
42 | 73 | }, |
|
0 commit comments