Skip to content

Commit 7194566

Browse files
author
Alexander Kharkovey
committed
refactor(semrel): change build file
1 parent 0cf0c5c commit 7194566

23 files changed

+1786
-2649
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libs/sevrel/project.json renamed to libs/semrel/project.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"name": "sevrel",
2+
"name": "semrel",
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4-
"sourceRoot": "libs/sevrel/src",
4+
"sourceRoot": "libs/semrel/src",
55
"projectType": "library",
66
"targets": {
77
"build": {
88
"executor": "@nrwl/js:tsc",
99
"outputs": ["{options.outputPath}"],
1010
"options": {
11-
"outputPath": "dist/libs/sevrel",
12-
"main": "libs/sevrel/src/index.ts",
13-
"tsConfig": "libs/sevrel/tsconfig.lib.json",
11+
"outputPath": "dist/libs/semrel",
12+
"main": "libs/semrel/src/index.ts",
13+
"tsConfig": "libs/semrel/tsconfig.lib.json",
1414
"assets": [
15-
"libs/sevrel/*.md",
15+
"libs/semrel/*.md",
1616
{
17-
"input": "./libs/sevrel/src",
17+
"input": "./libs/semrel/src",
1818
"glob": "**/!(*.ts)",
1919
"output": "./src"
2020
},
2121
{
22-
"input": "./libs/sevrel/src",
22+
"input": "./libs/semrel/src",
2323
"glob": "**/*.d.ts",
2424
"output": "./src"
2525
},
2626
{
27-
"input": "./libs/sevrel",
27+
"input": "./libs/semrel",
2828
"glob": "builders.json",
2929
"output": "."
3030
}
@@ -36,18 +36,18 @@
3636
"outputs": ["{options.outputFile}"],
3737
"options": {
3838
"lintFilePatterns": [
39-
"libs/sevrel/**/*.ts",
40-
"libs/sevrel/generators.json",
41-
"libs/sevrel/executors.json",
42-
"libs/sevrel/package.json"
39+
"libs/semrel/**/*.ts",
40+
"libs/semrel/generators.json",
41+
"libs/semrel/executors.json",
42+
"libs/semrel/package.json"
4343
]
4444
}
4545
},
4646
"test": {
4747
"executor": "@nrwl/jest:jest",
48-
"outputs": ["coverage/libs/sevrel"],
48+
"outputs": ["coverage/libs/semrel"],
4949
"options": {
50-
"jestConfig": "libs/sevrel/jest.config.ts",
50+
"jestConfig": "libs/semrel/jest.config.ts",
5151
"passWithNoTests": true
5252
}
5353
}

libs/sevrel/src/builders/release/executor.ts renamed to libs/semrel/src/builders/release/executor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { releaseNotesGenerator } from './release-notes-generator';
66
import { commitAnalyzer } from './commit-analyzer';
77
import { npm } from './npm';
88
import { plugins } from './plugins';
9-
// import { preparePlugin } from './prepare';
9+
import { preparePlugin } from './prepare-plugin';
1010
import { platformPlugin } from './platform-plugin';
1111

12-
async function runRelease(
12+
export async function runRelease(
1313
options: ReleaseExecutorSchema,
1414
builderContext: BuilderContext
1515
) {
@@ -49,7 +49,7 @@ async function runRelease(
4949
extends: undefined,
5050
dryRun,
5151
plugins: plugins([
52-
// preparePlugin({ publishable, publishPath }),
52+
preparePlugin({ publishable, publishPath }),
5353
commitAnalyzer({ project }),
5454
releaseNotesGenerator({ project }),
5555
npm({ publishable, publishPath }),

0 commit comments

Comments
 (0)