@aidc-toolkit/dev 0.9.7-beta → 0.9.8-beta
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/README.md +2 -2
- package/config/release.json +6 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/index.ts +1 -1
- package/src/release.ts +17 -7
- /package/src/{eslint.config.template.ts → eslint-config-template.ts} +0 -0
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ Options specific to the package may override or supplement core options if requi
|
|
|
20
20
|
## ESLint Configuration
|
|
21
21
|
|
|
22
22
|
All AIDC Toolkit packages are expected to follow a common coding style (enforced by [ESLint](https://eslint.org/)),
|
|
23
|
-
which implies that they all have the same ESLint configuration. This is supported by the [`eslint
|
|
24
|
-
file](src/eslint
|
|
23
|
+
which implies that they all have the same ESLint configuration. This is supported by the [`eslint-config-template.ts`
|
|
24
|
+
file](src/eslint-config-template.ts) in this package. Core changes should be managed in that file, with other packages
|
|
25
25
|
declaring their own `eslint.config.js` file as follows:
|
|
26
26
|
|
|
27
27
|
```javascript
|
package/config/release.json
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
"organization": "aidc-toolkit",
|
|
3
3
|
"repositories": {
|
|
4
4
|
"dev": {
|
|
5
|
-
"version": "0.9.
|
|
5
|
+
"version": "0.9.8-beta"
|
|
6
6
|
},
|
|
7
7
|
"core": {
|
|
8
|
-
"version": "0.9.
|
|
8
|
+
"version": "0.9.8-beta"
|
|
9
9
|
},
|
|
10
10
|
"utility": {
|
|
11
|
-
"version": "0.9.
|
|
11
|
+
"version": "0.9.8-beta"
|
|
12
12
|
},
|
|
13
13
|
"gs1": {
|
|
14
14
|
"name": "gs1",
|
|
15
|
-
"version": "0.9.
|
|
15
|
+
"version": "0.9.8-beta"
|
|
16
16
|
},
|
|
17
17
|
"demo": {
|
|
18
|
-
"version": "0.9.
|
|
18
|
+
"version": "0.9.8-beta"
|
|
19
19
|
},
|
|
20
20
|
"aidc-toolkit.github.io": {
|
|
21
21
|
"directory": "doc",
|
|
22
|
-
"version": "0.9.
|
|
22
|
+
"version": "0.9.8-beta"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -34,7 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(src_exports);
|
|
36
36
|
|
|
37
|
-
// src/eslint
|
|
37
|
+
// src/eslint-config-template.ts
|
|
38
38
|
var import_js = __toESM(require("@eslint/js"), 1);
|
|
39
39
|
var import_eslint_plugin = __toESM(require("@stylistic/eslint-plugin"), 1);
|
|
40
40
|
var import_eslint_config_love = __toESM(require("eslint-config-love"), 1);
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aidc-toolkit/dev",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8-beta",
|
|
4
4
|
"description": "Shared development artefacts for AIDC Toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@eslint/js": "^9.16.0",
|
|
38
38
|
"@octokit/types": "^13.6.2",
|
|
39
39
|
"@rollup/rollup-linux-x64-gnu": "^4.28.1",
|
|
40
|
-
"@stylistic/eslint-plugin": "^2.12.
|
|
40
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
41
41
|
"eslint-config-love": "^110.0.0",
|
|
42
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
42
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
43
43
|
"octokit": "^4.0.2",
|
|
44
|
-
"typescript-eslint": "^8.
|
|
44
|
+
"typescript-eslint": "^8.18.0",
|
|
45
45
|
"yaml": "^2.6.1"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./eslint
|
|
1
|
+
export * from "./eslint-config-template.js";
|
package/src/release.ts
CHANGED
|
@@ -16,6 +16,11 @@ interface Configuration {
|
|
|
16
16
|
*/
|
|
17
17
|
organization: string;
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* If true, the fact that the repository is uncommitted is ignored. For development and testing purposes only.
|
|
21
|
+
*/
|
|
22
|
+
ignoreUncommitted?: boolean;
|
|
23
|
+
|
|
19
24
|
/**
|
|
20
25
|
* Repositories.
|
|
21
26
|
*/
|
|
@@ -30,11 +35,6 @@ interface Configuration {
|
|
|
30
35
|
*/
|
|
31
36
|
version: string;
|
|
32
37
|
}>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* If true, the fact that the repository is uncommitted is ignored. For development and testing purposes only.
|
|
36
|
-
*/
|
|
37
|
-
ignoreUncommitted?: boolean;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -208,6 +208,7 @@ async function release(): Promise<void> {
|
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
let allSkipped = true;
|
|
211
|
+
let firstRepository = true;
|
|
211
212
|
|
|
212
213
|
for (const name of Object.keys(configuration.repositories)) {
|
|
213
214
|
const repository = configuration.repositories[name];
|
|
@@ -289,8 +290,15 @@ async function release(): Promise<void> {
|
|
|
289
290
|
for (const dependency of linkDependencies) {
|
|
290
291
|
run(false, "npm", "link", dependency);
|
|
291
292
|
}
|
|
292
|
-
} else
|
|
293
|
-
|
|
293
|
+
} else {
|
|
294
|
+
if (!allSkipped) {
|
|
295
|
+
throw new Error(`Repository ${name} is supposed to be skipped but at least one prior repository has been updated`);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// First repository is excluded as it hosts development artefacts only, including the configuration file for this process.
|
|
299
|
+
if (!firstRepository && run(true, "git", "tag", "--points-at", "HEAD", tag).length === 0) {
|
|
300
|
+
throw new Error(`Repository ${name} has at least one commit since version ${repository.version}`);
|
|
301
|
+
}
|
|
294
302
|
}
|
|
295
303
|
break;
|
|
296
304
|
|
|
@@ -443,6 +451,8 @@ async function release(): Promise<void> {
|
|
|
443
451
|
}
|
|
444
452
|
|
|
445
453
|
saveState();
|
|
454
|
+
|
|
455
|
+
firstRepository = false;
|
|
446
456
|
}
|
|
447
457
|
|
|
448
458
|
// All repositories released.
|
|
File without changes
|