fba-cli 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/util.js +2 -4
- package/dist/util.js.map +1 -1
- package/pack/fba-cli-1.0.7.tgz +0 -0
- package/package.json +29 -4
- package/dist/package.json +0 -85
- package/jest.config.ts +0 -10
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See
|
|
4
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## [1.0.7](https://github.com/mbehr1/fba-cli/compare/v1.0.6...v1.0.7) (2023-11-12)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ci
|
|
11
|
+
|
|
12
|
+
* dont publish jest.config.ts ([5164fa0](https://github.com/mbehr1/fba-cli/commit/5164fa072ca56b66e9c4df1a4828f0b9b78ea78c))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### fix
|
|
16
|
+
|
|
17
|
+
* generate CHANGELOG.md ([4b14ef3](https://github.com/mbehr1/fba-cli/commit/4b14ef3af4a79bcb17abca61ea6bd0dba199c8d1))
|
package/dist/util.js
CHANGED
|
@@ -3,16 +3,14 @@ let cachedVersion;
|
|
|
3
3
|
export function version() {
|
|
4
4
|
// read version from package.json
|
|
5
5
|
if (cachedVersion === undefined) {
|
|
6
|
-
const pkgJsonUrl = new URL('./package.json', import.meta.url);
|
|
7
6
|
let json;
|
|
8
7
|
try {
|
|
9
|
-
|
|
8
|
+
// we're called from dist or src
|
|
9
|
+
json = readFileSync(new URL('../package.json', import.meta.url), 'utf8');
|
|
10
10
|
}
|
|
11
11
|
catch (e) {
|
|
12
12
|
// during jest test this is expected... (all quite messy)
|
|
13
13
|
console.log(`version() readFileSync failed: ${e}`);
|
|
14
|
-
json = readFileSync(new URL('../package.json', import.meta.url), 'utf8');
|
|
15
|
-
console.log(`version() readFileSync succeeded`);
|
|
16
14
|
}
|
|
17
15
|
try {
|
|
18
16
|
const pkg = JSON.parse(json);
|
package/dist/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;AAEjC,IAAI,aAAiC,CAAA;AAErC,MAAM,UAAU,OAAO;IACrB,iCAAiC;IACjC,IAAI,aAAa,KAAK,SAAS,EAAE;QAC/B,
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAA;AAEjC,IAAI,aAAiC,CAAA;AAErC,MAAM,UAAU,OAAO;IACrB,iCAAiC;IACjC,IAAI,aAAa,KAAK,SAAS,EAAE;QAC/B,IAAI,IAAqB,CAAA;QACzB,IAAI;YACF,gCAAgC;YAChC,IAAI,GAAG,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAA;SACzE;QAAC,OAAO,CAAC,EAAE;YACV,yDAAyD;YACzD,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,EAAE,CAAC,CAAA;SACnD;QACD,IAAI;YACF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YAC5B,aAAa,GAAG,GAAG,CAAC,OAAO,CAAA;SAC5B;QAAC,OAAO,CAAC,EAAE;YACV,aAAa,GAAG,SAAS,CAAA;SAC1B;KACF;IACD,OAAO,aAAa,IAAI,SAAS,CAAA;AACnC,CAAC;AAED,wFAAwF;AACxF,yBAAyB;AAEzB,MAAM,UAAU,cAAc,CAAI,SAA+C,EAAE,KAAa,EAAE,OAAe;IAC/G,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxC,OAAO,SAAS,CAAC,OAAO,CAAC;aACtB,IAAI,CAAC,OAAO,CAAC;aACb,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE;YAChB,IAAI,OAAO,GAAG,CAAC,EAAE;gBACf,OAAO,KAAK,CAAC,KAAK,CAAC;qBAChB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC;qBAC9D,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAU,CAAC,CAAC;qBACpC,KAAK,CAAC,MAAM,CAAC,CAAA;aACjB;YACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;QACvB,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACzB,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fba-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "A CLI (command line interface) to execute FBA (fishbone analysis) files with DLT-logs/adlt.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"fba-cli": "dist/index.js"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "eslint src --ext .ts && tsc
|
|
16
|
+
"build": "eslint src --ext .ts && tsc",
|
|
17
17
|
"lint": "eslint src --ext .ts",
|
|
18
18
|
"test": "node --experimental-vm-modules node_modules/.bin/jest",
|
|
19
19
|
"prepublish": "npm run build"
|
|
@@ -41,8 +41,31 @@
|
|
|
41
41
|
"plugins": [
|
|
42
42
|
"@semantic-release/commit-analyzer",
|
|
43
43
|
"@semantic-release/release-notes-generator",
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
[
|
|
45
|
+
"@semantic-release/changelog",
|
|
46
|
+
{
|
|
47
|
+
"changelogFile": "CHANGELOG.md",
|
|
48
|
+
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file. See \n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
"@semantic-release/npm",
|
|
53
|
+
{
|
|
54
|
+
"tarballDir": "pack"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
"@semantic-release/github",
|
|
59
|
+
{
|
|
60
|
+
"assets": "pack/*.tgz"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"@semantic-release/git",
|
|
65
|
+
{
|
|
66
|
+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
46
69
|
]
|
|
47
70
|
},
|
|
48
71
|
"dependencies": {
|
|
@@ -64,6 +87,8 @@
|
|
|
64
87
|
"ws": "^8.14.2"
|
|
65
88
|
},
|
|
66
89
|
"devDependencies": {
|
|
90
|
+
"@semantic-release/git": "^10.0.1",
|
|
91
|
+
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
67
92
|
"@types/cli-progress": "^3.11.4",
|
|
68
93
|
"@types/jest": "^29.5.6",
|
|
69
94
|
"@types/js-yaml": "^4.0.8",
|
package/dist/package.json
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fba-cli",
|
|
3
|
-
"version": "1.0.3",
|
|
4
|
-
"description": "A CLI (command line interface) to execute FBA (fishbone analysis) files with DLT-logs/adlt.",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/mbehr1/fba-cli.git"
|
|
8
|
-
},
|
|
9
|
-
"homepage": "https://github.com/mbehr1/fba-cli#readme",
|
|
10
|
-
"main": "dist/index.js",
|
|
11
|
-
"type": "module",
|
|
12
|
-
"bin": {
|
|
13
|
-
"fba-cli": "dist/index.js"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "eslint src --ext .ts && tsc && node -e \"require('fs').cpSync('./package.json', './dist/package.json')\"",
|
|
17
|
-
"lint": "eslint src --ext .ts",
|
|
18
|
-
"test": "node --experimental-vm-modules node_modules/.bin/jest",
|
|
19
|
-
"prepublish": "npm run build"
|
|
20
|
-
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"fishbone",
|
|
23
|
-
"analysis",
|
|
24
|
-
"dlt"
|
|
25
|
-
],
|
|
26
|
-
"author": "Matthias Behr",
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"release": {
|
|
29
|
-
"branches": [
|
|
30
|
-
"main",
|
|
31
|
-
{
|
|
32
|
-
"name": "beta",
|
|
33
|
-
"prerelease": true
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "alpha",
|
|
37
|
-
"prerelease": true
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"extends": "semantic-release-npm-github-publish",
|
|
41
|
-
"plugins": [
|
|
42
|
-
"@semantic-release/commit-analyzer",
|
|
43
|
-
"@semantic-release/release-notes-generator",
|
|
44
|
-
"@semantic-release/npm",
|
|
45
|
-
"@semantic-release/github"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"chalk": "^5.3.0",
|
|
50
|
-
"cli-progress": "^3.12.0",
|
|
51
|
-
"commander": "^11.1.0",
|
|
52
|
-
"js-yaml": "^4.1.0",
|
|
53
|
-
"json5": "2.2.3",
|
|
54
|
-
"jsonpath": "^1.1.1",
|
|
55
|
-
"mdast-util-assert": "^5.0.0",
|
|
56
|
-
"mdast-util-to-markdown": "^2.1.0",
|
|
57
|
-
"short-unique-id": "^5.0.3",
|
|
58
|
-
"unist-builder": "^4.0.0",
|
|
59
|
-
"unist-util-filter": "^5.0.1",
|
|
60
|
-
"unist-util-inspect": "^8.0.0",
|
|
61
|
-
"unist-util-is": "^6.0.0",
|
|
62
|
-
"unist-util-map": "^4.0.0",
|
|
63
|
-
"unist-util-visit": "^5.0.0",
|
|
64
|
-
"ws": "^8.14.2"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@types/cli-progress": "^3.11.4",
|
|
68
|
-
"@types/jest": "^29.5.6",
|
|
69
|
-
"@types/js-yaml": "^4.0.8",
|
|
70
|
-
"@types/jsonpath": "0.2.2",
|
|
71
|
-
"@types/mdast": "^4.0.2",
|
|
72
|
-
"@types/node": "^18.18.0",
|
|
73
|
-
"@types/unist": "3.0.1",
|
|
74
|
-
"@types/ws": "^8.5.8",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
76
|
-
"@typescript-eslint/parser": "^6.8.0",
|
|
77
|
-
"eslint": "^8.52.0",
|
|
78
|
-
"jest": "^29.7.0",
|
|
79
|
-
"semantic-release": "^22.0.6",
|
|
80
|
-
"semantic-release-npm-github-publish": "^1.5.4",
|
|
81
|
-
"ts-jest": "^29.1.1",
|
|
82
|
-
"ts-node": "^10.9.1",
|
|
83
|
-
"typescript": "^5.2.2"
|
|
84
|
-
}
|
|
85
|
-
}
|