@aidc-toolkit/dev 0.9.14-beta → 0.9.16-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.
@@ -2,26 +2,29 @@
2
2
  "organization": "aidc-toolkit",
3
3
  "repositories": {
4
4
  "dev": {
5
- "version": "0.9.14-beta"
5
+ "version": "0.9.16-beta"
6
6
  },
7
7
  "core": {
8
- "version": "0.9.14-beta"
8
+ "version": "0.9.16-beta"
9
9
  },
10
10
  "utility": {
11
- "version": "0.9.14-beta"
11
+ "version": "0.9.16-beta"
12
12
  },
13
13
  "gs1": {
14
- "version": "0.9.14-beta"
14
+ "version": "0.9.16-beta"
15
15
  },
16
16
  "demo": {
17
- "version": "0.9.14-beta"
17
+ "version": "0.9.16-beta"
18
18
  },
19
19
  "app-extension": {
20
- "version": "0.9.14-beta"
20
+ "version": "0.9.16-beta"
21
+ },
22
+ "app-generator": {
23
+ "version": "0.9.16-beta"
21
24
  },
22
25
  "aidc-toolkit.github.io": {
23
26
  "directory": "doc",
24
- "version": "0.9.14-beta"
27
+ "version": "0.9.16-beta"
25
28
  }
26
29
  }
27
30
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Run a command and optionally capture its output.
3
+ *
4
+ * @param captureOutput
5
+ * If true, output is captured and returned.
6
+ *
7
+ * @param command
8
+ * Command to run.
9
+ *
10
+ * @param args
11
+ * Arguments to command.
12
+ *
13
+ * @returns
14
+ * Output if captured or empty array if not.
15
+ */
16
+ export declare function run(captureOutput: boolean, command: string, ...args: string[]): string[];
17
+ //# sourceMappingURL=command-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-util.d.ts","sourceRoot":"","sources":["../src/command-util.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAkBxF"}
@@ -0,0 +1,32 @@
1
+ import { spawnSync } from "child_process";
2
+ /**
3
+ * Run a command and optionally capture its output.
4
+ *
5
+ * @param captureOutput
6
+ * If true, output is captured and returned.
7
+ *
8
+ * @param command
9
+ * Command to run.
10
+ *
11
+ * @param args
12
+ * Arguments to command.
13
+ *
14
+ * @returns
15
+ * Output if captured or empty array if not.
16
+ */
17
+ export function run(captureOutput, command, ...args) {
18
+ const spawnResult = spawnSync(command, args, {
19
+ stdio: ["inherit", captureOutput ? "pipe" : "inherit", "inherit"]
20
+ });
21
+ if (spawnResult.error !== undefined) {
22
+ throw spawnResult.error;
23
+ }
24
+ if (spawnResult.status === null) {
25
+ throw new Error(`Terminated by signal ${spawnResult.signal}`);
26
+ }
27
+ if (spawnResult.status !== 0) {
28
+ throw new Error(`Failed with status ${spawnResult.status}`);
29
+ }
30
+ return captureOutput ? spawnResult.stdout.toString().split("\n").slice(0, -1) : [];
31
+ }
32
+ //# sourceMappingURL=command-util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-util.js","sourceRoot":"","sources":["../src/command-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,GAAG,CAAC,aAAsB,EAAE,OAAe,EAAE,GAAG,IAAc;IAC1E,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE;QACzC,KAAK,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC;KACpE,CAAC,CAAC;IAEH,IAAI,WAAW,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,WAAW,CAAC,KAAK,CAAC;IAC5B,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,wBAAwB,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,sBAAsB,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const esLintConfigAIDCToolkit: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
2
+ //# sourceMappingURL=eslint-config-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-config-template.d.ts","sourceRoot":"","sources":["../src/eslint-config-template.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB,qEA0GnC,CAAC"}
@@ -0,0 +1,99 @@
1
+ import js from "@eslint/js";
2
+ import stylistic from "@stylistic/eslint-plugin";
3
+ import esLintConfigLove from "eslint-config-love";
4
+ import jsdoc from "eslint-plugin-jsdoc";
5
+ import tseslint from "typescript-eslint";
6
+ export const esLintConfigAIDCToolkit = tseslint.config({
7
+ ignores: ["dist"]
8
+ }, js.configs.recommended, ...tseslint.configs.strictTypeChecked, stylistic.configs.recommended, jsdoc.configs["flat/recommended-typescript"], esLintConfigLove, {
9
+ languageOptions: {
10
+ parserOptions: {
11
+ projectService: true
12
+ }
13
+ },
14
+ linterOptions: {
15
+ reportUnusedDisableDirectives: "error"
16
+ },
17
+ rules: {
18
+ "complexity": "off",
19
+ "max-depth": ["error", 10],
20
+ "max-lines": "off",
21
+ "no-dupe-class-members": "off",
22
+ "no-redeclare": "off",
23
+ "no-unused-vars": "off",
24
+ "@typescript-eslint/class-literal-property-style": "off",
25
+ "@typescript-eslint/class-methods-use-this": "off",
26
+ "@typescript-eslint/init-declarations": "off",
27
+ "@typescript-eslint/max-params": "off",
28
+ "@typescript-eslint/no-empty-function": "off",
29
+ "@typescript-eslint/no-empty-object-type": "off",
30
+ "@typescript-eslint/no-magic-numbers": "off",
31
+ "@typescript-eslint/no-unnecessary-type-parameters": "off",
32
+ "@typescript-eslint/no-unused-vars": [
33
+ "error",
34
+ {
35
+ argsIgnorePattern: "^_",
36
+ varsIgnorePattern: "^_",
37
+ caughtErrorsIgnorePattern: "^_"
38
+ }
39
+ ],
40
+ "@typescript-eslint/prefer-destructuring": "off",
41
+ "@typescript-eslint/unbound-method": ["error", {
42
+ ignoreStatic: true
43
+ }],
44
+ "@stylistic/array-bracket-newline": ["error", "consistent"],
45
+ "@stylistic/brace-style": ["error", "1tbs", {
46
+ allowSingleLine: false
47
+ }],
48
+ "@stylistic/comma-dangle": ["error", "never"],
49
+ "@stylistic/indent": ["error", 4],
50
+ "@stylistic/member-delimiter-style": ["error", {
51
+ multiline: {
52
+ delimiter: "semi",
53
+ requireLast: true
54
+ },
55
+ singleline: {
56
+ delimiter: "semi"
57
+ }
58
+ }],
59
+ "@stylistic/no-trailing-spaces": ["off"],
60
+ "@stylistic/operator-linebreak": ["error", "after"],
61
+ "@stylistic/quotes": ["error", "double"],
62
+ "@stylistic/semi": ["error", "always"],
63
+ "@stylistic/object-curly-newline": ["error", {
64
+ ObjectExpression: {
65
+ multiline: true,
66
+ minProperties: 1
67
+ },
68
+ ObjectPattern: {
69
+ multiline: true,
70
+ minProperties: 1
71
+ }
72
+ }],
73
+ "@stylistic/object-property-newline": "error",
74
+ "jsdoc/require-description": ["warn", {
75
+ contexts: ["ClassDeclaration", "ClassProperty", "FunctionDeclaration", "MethodDefinition", "TSEnumDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSTypeAliasDeclaration"]
76
+ }],
77
+ "jsdoc/require-jsdoc": ["warn", {
78
+ contexts: ["ClassDeclaration", "ClassProperty", "FunctionDeclaration", "MethodDefinition", "TSEnumDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSTypeAliasDeclaration"]
79
+ }],
80
+ "jsdoc/require-returns": ["warn", {
81
+ checkGetters: false
82
+ }],
83
+ "jsdoc/tag-lines": ["warn", "any", {
84
+ count: 1,
85
+ startLines: 1
86
+ }]
87
+ }
88
+ }, {
89
+ files: [
90
+ "test/**/*"
91
+ ],
92
+ rules: {
93
+ "max-nested-callbacks": "off",
94
+ "jsdoc/require-jsdoc": "off",
95
+ "@typescript-eslint/dot-notation": "off",
96
+ "@typescript-eslint/no-unsafe-type-assertion": "off"
97
+ }
98
+ });
99
+ //# sourceMappingURL=eslint-config-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-config-template.js","sourceRoot":"","sources":["../src/eslint-config-template.ts"],"names":[],"mappings":"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"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,19 @@
1
- import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
-
3
- declare const esLintConfigAIDCToolkit: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
4
-
5
- /**
6
- * Publish to development npm registry.
1
+ /*!
2
+ * Copyright © 2024-2025 Dolphin Data Development Ltd. and AIDC Toolkit
3
+ * contributors
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
- declare function publishDev(): void;
9
-
10
- export { esLintConfigAIDCToolkit, publishDev };
17
+ export * from "./eslint-config-template.js";
18
+ export * from "./publish-dev.js";
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import d from"@eslint/js";import g from"@stylistic/eslint-plugin";import y from"eslint-config-love";import b from"eslint-plugin-jsdoc";import c from"typescript-eslint";var k=c.config({ignores:["dist"]},d.configs.recommended,...c.configs.strictTypeChecked,g.configs["recommended-flat"],b.configs["flat/recommended-typescript"],y,{languageOptions:{parserOptions:{projectService:!0}},linterOptions:{reportUnusedDisableDirectives:"error"},rules:{complexity:"off","max-lines":"off","no-dupe-class-members":"off","no-redeclare":"off","no-unused-vars":"off","@typescript-eslint/class-literal-property-style":"off","@typescript-eslint/class-methods-use-this":"off","@typescript-eslint/init-declarations":"off","@typescript-eslint/max-params":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/no-empty-object-type":"off","@typescript-eslint/no-magic-numbers":"off","@typescript-eslint/no-unnecessary-type-parameters":"off","@typescript-eslint/no-unused-vars":["error",{argsIgnorePattern:"^_",varsIgnorePattern:"^_",caughtErrorsIgnorePattern:"^_"}],"@typescript-eslint/prefer-destructuring":"off","@typescript-eslint/unbound-method":["error",{ignoreStatic:!0}],"@stylistic/array-bracket-newline":["error","consistent"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!1}],"@stylistic/comma-dangle":["error","never"],"@stylistic/indent":["error",4],"@stylistic/member-delimiter-style":["error",{multiline:{delimiter:"semi",requireLast:!0},singleline:{delimiter:"semi"}}],"@stylistic/no-trailing-spaces":["off"],"@stylistic/operator-linebreak":["error","after"],"@stylistic/quotes":["error","double"],"@stylistic/semi":["error","always"],"@stylistic/object-curly-newline":["error",{ObjectExpression:{multiline:!0,minProperties:1},ObjectPattern:{multiline:!0,minProperties:1}}],"@stylistic/object-property-newline":"error","jsdoc/require-description":["warn",{contexts:["ClassDeclaration","ClassProperty","FunctionDeclaration","MethodDefinition","TSEnumDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSTypeAliasDeclaration"]}],"jsdoc/require-jsdoc":["warn",{contexts:["ClassDeclaration","ClassProperty","FunctionDeclaration","MethodDefinition","TSEnumDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSTypeAliasDeclaration"]}],"jsdoc/require-returns":["warn",{checkGetters:!1}],"jsdoc/tag-lines":["warn","any",{count:1,startLines:1}]}},{files:["test/**/*"],rules:{"max-nested-callbacks":"off","jsdoc/require-jsdoc":"off","@typescript-eslint/dot-notation":"off","@typescript-eslint/no-unsafe-type-assertion":"off"}});import*as i from"fs";import{spawnSync as h}from"child_process";function s(r,e,...n){let t=h(e,n,{stdio:["inherit",r?"pipe":"inherit","inherit"]});if(t.error!==void 0)throw t.error;if(t.status===null)throw new Error(`Terminated by signal ${t.signal}`);if(t.status!==0)throw new Error(`Failed with status ${t.status}`);return r?t.stdout.toString().split(`
2
- `).slice(0,-1):[]}function o(r,e){return`${"0".repeat(e-1)}${r}`.slice(-e)}function l(r,e){if(e!==void 0)for(let n in e)n.split("/")[0]===r&&(e[n]="alpha")}function $(){s(!1,"npm","update","--save");let r=new Date,e="package.json",n="_package.json",t=JSON.parse(i.readFileSync(e).toString()),a=t.name.split("/")[0];l(a,t.devDependencies),l(a,t.dependencies),i.writeFileSync(e,JSON.stringify(t,null,2)),i.renameSync(e,n);try{let[p,f,u]=t.version.split("-")[0].split(".").map(m=>Number(m));t.version=`${p}.${f}.${u+1}-alpha.${r.getFullYear()}${o(r.getMonth()+1,2)}${o(r.getDate(),2)}${o(r.getHours(),2)}${o(r.getMinutes(),2)}`,i.writeFileSync(e,JSON.stringify(t,null,2)),s(!1,"npm","run","build:dev"),s(!1,"npm","publish","--tag","alpha")}finally{i.rmSync(e),i.renameSync(n,e)}}export{k as esLintConfigAIDCToolkit,$ as publishDev};
3
1
  /*!
4
2
  * Copyright © 2024-2025 Dolphin Data Development Ltd. and AIDC Toolkit
5
3
  * contributors
@@ -16,3 +14,6 @@ import d from"@eslint/js";import g from"@stylistic/eslint-plugin";import y from"
16
14
  * See the License for the specific language governing permissions and
17
15
  * limitations under the License.
18
16
  */
17
+ export * from "./eslint-config-template.js";
18
+ export * from "./publish-dev.js";
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Publish to development npm registry.
3
+ */
4
+ export declare function publishDev(): void;
5
+ //# sourceMappingURL=publish-dev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-dev.d.ts","sourceRoot":"","sources":["../src/publish-dev.ts"],"names":[],"mappings":"AA+DA;;GAEG;AACH,wBAAgB,UAAU,IAAI,IAAI,CA2CjC"}
@@ -0,0 +1,72 @@
1
+ import * as fs from "fs";
2
+ import { run } from "./command-util.js";
3
+ /**
4
+ * Convert a number to a zero-padded string.
5
+ *
6
+ * @param n
7
+ * Number.
8
+ *
9
+ * @param length
10
+ * Length of required string.
11
+ *
12
+ * @returns
13
+ * Zero-padded string.
14
+ */
15
+ function zeroPadded(n, length) {
16
+ return `${"0".repeat(length - 1)}${n}`.slice(-length);
17
+ }
18
+ /**
19
+ * Fix alpha dependencies from the organization.
20
+ *
21
+ * @param atOrganization
22
+ * '@' symbol and organization.
23
+ * @param dependencies
24
+ * Dependencies.
25
+ */
26
+ function fixAlphaDependencies(atOrganization, dependencies) {
27
+ if (dependencies !== undefined) {
28
+ for (const dependency in dependencies) {
29
+ if (dependency.split("/")[0] === atOrganization) {
30
+ // npm update --save updates this with the latest.
31
+ dependencies[dependency] = "alpha";
32
+ }
33
+ }
34
+ }
35
+ }
36
+ /**
37
+ * Publish to development npm registry.
38
+ */
39
+ export function publishDev() {
40
+ // Ensure that packages are up to date.
41
+ run(false, "npm", "update", "--save");
42
+ const now = new Date();
43
+ const packageConfigurationPath = "package.json";
44
+ const backupPackageConfigurationPath = "_package.json";
45
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- Package configuration format is known.
46
+ const packageConfiguration = JSON.parse(fs.readFileSync(packageConfigurationPath).toString());
47
+ const atOrganization = packageConfiguration.name.split("/")[0];
48
+ fixAlphaDependencies(atOrganization, packageConfiguration.devDependencies);
49
+ fixAlphaDependencies(atOrganization, packageConfiguration.dependencies);
50
+ // Save the package configuration.
51
+ fs.writeFileSync(packageConfigurationPath, `${JSON.stringify(packageConfiguration, null, 2)}\n`);
52
+ // Backup the package configuration file.
53
+ fs.renameSync(packageConfigurationPath, backupPackageConfigurationPath);
54
+ try {
55
+ // Strip pre-release identifier if any and parse semantic version into its components.
56
+ const [majorVersion, minorVersion, patchVersion] = packageConfiguration.version.split("-")[0].split(".").map(versionString => Number(versionString));
57
+ // Set version to alpha version with incremental patch version number.
58
+ packageConfiguration.version = `${majorVersion}.${minorVersion}.${patchVersion + 1}-alpha.${now.getFullYear()}${zeroPadded(now.getMonth() + 1, 2)}${zeroPadded(now.getDate(), 2)}${zeroPadded(now.getHours(), 2)}${zeroPadded(now.getMinutes(), 2)}`;
59
+ // Save the package configuration.
60
+ fs.writeFileSync(packageConfigurationPath, `${JSON.stringify(packageConfiguration, null, 2)}\n`);
61
+ // Run the development build.
62
+ run(false, "npm", "run", "build:dev");
63
+ // Publish to the registry.
64
+ run(false, "npm", "publish", "--tag", "alpha");
65
+ }
66
+ finally {
67
+ // Restore the package configuration file.
68
+ fs.rmSync(packageConfigurationPath);
69
+ fs.renameSync(backupPackageConfigurationPath, packageConfigurationPath);
70
+ }
71
+ }
72
+ //# sourceMappingURL=publish-dev.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-dev.js","sourceRoot":"","sources":["../src/publish-dev.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aidc-toolkit/dev",
3
- "version": "0.9.14-beta",
3
+ "version": "0.9.16-beta",
4
4
  "description": "Shared development artefacts for AIDC Toolkit",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
- "homepage": "https://github.com/aidc-toolkit",
7
+ "homepage": "https://aidc-toolkit.com/",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/aidc-toolkit/dev.git"
@@ -21,9 +21,9 @@
21
21
  "scripts": {
22
22
  "copy-workflows": "copy-files-from-to --config copy-workflows.json",
23
23
  "lint": "eslint",
24
- "build:core": "tsup",
25
- "build:dev": "npm run build:core && tsc --project tsconfig-declaration-local.json",
26
- "build:release": "npm run build:core -- --minify",
24
+ "build:core": "rimraf dist && tsc --project",
25
+ "build:dev": "npm run build:core -- tsconfig-build-dev-local.json",
26
+ "build:release": "npm run build:core -- tsconfig-build-local.json",
27
27
  "build:doc": "npm run build:dev",
28
28
  "publish-dev": "bin/publish-dev-local",
29
29
  "release": "tsx src/release.ts"
@@ -32,22 +32,22 @@
32
32
  "publish-dev": "bin/publish-dev"
33
33
  },
34
34
  "devDependencies": {
35
- "copy-files-from-to": "^3.12.0"
35
+ "copy-files-from-to": "^3.12.1"
36
36
  },
37
37
  "dependencies": {
38
38
  "@eslint/js": "^9.20.0",
39
39
  "@octokit/types": "^13.8.0",
40
- "@stylistic/eslint-plugin": "^3.1.0",
41
- "eslint": "^9.20.1",
40
+ "@stylistic/eslint-plugin": "^4.1.0",
41
+ "eslint": "^9.21.0",
42
42
  "eslint-config-love": "^118.0.0",
43
43
  "eslint-plugin-jsdoc": "^50.6.3",
44
44
  "jiti": "^2.4.2",
45
45
  "octokit": "^4.1.2",
46
+ "rimraf": "^6.0.1",
46
47
  "ts-node": "^10.9.2",
47
- "tsup": "^8.3.6",
48
- "tsx": "^4.19.2",
48
+ "tsx": "^4.19.3",
49
49
  "typescript": "^5.7.3",
50
- "typescript-eslint": "^8.24.1",
50
+ "typescript-eslint": "^8.25.0",
51
51
  "yaml": "^2.7.0"
52
52
  }
53
53
  }
@@ -10,7 +10,7 @@ export const esLintConfigAIDCToolkit = tseslint.config(
10
10
  },
11
11
  js.configs.recommended,
12
12
  ...tseslint.configs.strictTypeChecked,
13
- stylistic.configs["recommended-flat"],
13
+ stylistic.configs.recommended,
14
14
  jsdoc.configs["flat/recommended-typescript"],
15
15
  esLintConfigLove,
16
16
  {
@@ -26,6 +26,7 @@ export const esLintConfigAIDCToolkit = tseslint.config(
26
26
 
27
27
  rules: {
28
28
  "complexity": "off",
29
+ "max-depth": ["error", 10],
29
30
  "max-lines": "off",
30
31
  "no-dupe-class-members": "off",
31
32
  "no-redeclare": "off",
@@ -82,7 +82,7 @@ export function publishDev(): void {
82
82
  fixAlphaDependencies(atOrganization, packageConfiguration.dependencies);
83
83
 
84
84
  // Save the package configuration.
85
- fs.writeFileSync(packageConfigurationPath, JSON.stringify(packageConfiguration, null, 2));
85
+ fs.writeFileSync(packageConfigurationPath, `${JSON.stringify(packageConfiguration, null, 2)}\n`);
86
86
 
87
87
  // Backup the package configuration file.
88
88
  fs.renameSync(packageConfigurationPath, backupPackageConfigurationPath);
@@ -95,7 +95,7 @@ export function publishDev(): void {
95
95
  packageConfiguration.version = `${majorVersion}.${minorVersion}.${patchVersion + 1}-alpha.${now.getFullYear()}${zeroPadded(now.getMonth() + 1, 2)}${zeroPadded(now.getDate(), 2)}${zeroPadded(now.getHours(), 2)}${zeroPadded(now.getMinutes(), 2)}`;
96
96
 
97
97
  // Save the package configuration.
98
- fs.writeFileSync(packageConfigurationPath, JSON.stringify(packageConfiguration, null, 2));
98
+ fs.writeFileSync(packageConfigurationPath, `${JSON.stringify(packageConfiguration, null, 2)}\n`);
99
99
 
100
100
  // Run the development build.
101
101
  run(false, "npm", "run", "build:dev");
package/src/release.ts CHANGED
@@ -6,8 +6,8 @@ import * as util from "node:util";
6
6
  import { Octokit } from "octokit";
7
7
  import { parse as yamlParse } from "yaml";
8
8
 
9
- import configurationJSON from "../config/release.json" assert { type: "json" };
10
- import secureConfigurationJSON from "../config/release.secure.json" assert { type: "json" };
9
+ import configurationJSON from "../config/release.json";
10
+ import secureConfigurationJSON from "../config/release.secure.json";
11
11
  import { run } from "./command-util.js";
12
12
 
13
13
  /**
@@ -113,7 +113,7 @@ interface WorkflowConfiguration {
113
113
  /**
114
114
  * Supported states.
115
115
  */
116
- type State = "skipped" | "install" | "build" | "commit" | "tag" | "push" | "workflow (push)" | "release" | "workflow (release)" | "complete";
116
+ type State = "skipped" | "install" | "build" | "commit" | "tag" | "push" | "workflow (push)" | "release" | "workflow (release)" | "restore alpha" | "complete";
117
117
 
118
118
  /**
119
119
  * Release.
@@ -373,15 +373,6 @@ async function release(): Promise<void> {
373
373
 
374
374
  await step(name, "push", () => {
375
375
  run(false, "git", "push", "--atomic", "origin", "main", tag);
376
-
377
- // Restore dependencies to "alpha" version for development.
378
- const devDependenciesUpdated = updateDependencies(packageConfiguration.devDependencies, true);
379
- const dependenciesUpdated = updateDependencies(packageConfiguration.dependencies, true);
380
-
381
- if (devDependenciesUpdated || dependenciesUpdated) {
382
- fs.writeFileSync(packageConfigurationPath, `${JSON.stringify(packageConfiguration, null, 2)}\n`);
383
- run(false, "git", "commit", "--all", "--message=Restored alpha version.");
384
- }
385
376
  });
386
377
 
387
378
  if (hasPushWorkflow) {
@@ -409,6 +400,17 @@ async function release(): Promise<void> {
409
400
  });
410
401
  }
411
402
 
403
+ await step(name, "restore alpha", () => {
404
+ // Restore dependencies to "alpha" version for development.
405
+ const devDependenciesUpdated = updateDependencies(packageConfiguration.devDependencies, true);
406
+ const dependenciesUpdated = updateDependencies(packageConfiguration.dependencies, true);
407
+
408
+ if (devDependenciesUpdated || dependenciesUpdated) {
409
+ fs.writeFileSync(packageConfigurationPath, `${JSON.stringify(packageConfiguration, null, 2)}\n`);
410
+ run(false, "git", "commit", "--all", "--message=Restored alpha version.");
411
+ }
412
+ });
413
+
412
414
  state[name] = "complete";
413
415
  }
414
416
 
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig-build-local.json",
3
+
4
+ "compilerOptions": {
5
+ "declarationMap": true,
6
+ "sourceMap": true
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig-build.json",
3
+
4
+ "compilerOptions": {
5
+ "declarationMap": true,
6
+ "sourceMap": true
7
+ }
8
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+
4
+ "files": [
5
+ "./src/index.ts"
6
+ ],
7
+
8
+ "compilerOptions": {
9
+ "outDir": "./dist"
10
+ }
11
+ }
@@ -6,9 +6,6 @@
6
6
  ],
7
7
 
8
8
  "compilerOptions": {
9
- "outDir": "../../../dist",
10
- "emitDeclarationOnly": true,
11
- "declaration": true,
12
- "declarationMap": true
9
+ "outDir": "../../../dist"
13
10
  }
14
11
  }
package/tsconfig.json CHANGED
@@ -1,26 +1,22 @@
1
- // https://aka.ms/tsconfig
2
1
  {
3
2
  "compilerOptions": {
4
- // Type checking.
5
3
  "strict": true,
6
4
  "exactOptionalPropertyTypes": true,
7
5
  "noFallthroughCasesInSwitch": true,
8
6
  "noImplicitOverride": true,
9
7
  "noPropertyAccessFromIndexSignature": true,
10
8
 
11
- // Modules.
12
- "module": "NodeNext",
9
+ "module": "ES2022",
10
+ "moduleResolution": "bundler",
13
11
  "resolveJsonModule": true,
14
12
 
15
- // Interop constraints.
13
+ "declaration": true,
14
+
16
15
  "esModuleInterop": true,
17
16
  "forceConsistentCasingInFileNames": true,
18
17
 
19
- // Language and environment.
20
- "target": "ESNext",
21
- "useDefineForClassFields": true,
18
+ "target": "ES2022",
22
19
 
23
- // Completeness.
24
20
  "skipLibCheck": true
25
21
  }
26
22
  }
package/dist/index.cjs DELETED
@@ -1,18 +0,0 @@
1
- "use strict";var j=Object.create;var a=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var i in t)a(e,i,{get:t[i],enumerable:!0})},f=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of k(t))!x.call(e,s)&&s!==i&&a(e,s,{get:()=>t[s],enumerable:!(r=v(t,s))||r.enumerable});return e};var o=(e,t,i)=>(i=e!=null?j(P(e)):{},f(t||!e||!e.__esModule?a(i,"default",{value:e,enumerable:!0}):i,e)),T=e=>f(a({},"__esModule",{value:!0}),e);var F={};C(F,{esLintConfigAIDCToolkit:()=>$,publishDev:()=>O});module.exports=T(F);var u=o(require("@eslint/js"),1),m=o(require("@stylistic/eslint-plugin"),1),d=o(require("eslint-config-love"),1),g=o(require("eslint-plugin-jsdoc"),1),p=o(require("typescript-eslint"),1),$=p.default.config({ignores:["dist"]},u.default.configs.recommended,...p.default.configs.strictTypeChecked,m.default.configs["recommended-flat"],g.default.configs["flat/recommended-typescript"],d.default,{languageOptions:{parserOptions:{projectService:!0}},linterOptions:{reportUnusedDisableDirectives:"error"},rules:{complexity:"off","max-lines":"off","no-dupe-class-members":"off","no-redeclare":"off","no-unused-vars":"off","@typescript-eslint/class-literal-property-style":"off","@typescript-eslint/class-methods-use-this":"off","@typescript-eslint/init-declarations":"off","@typescript-eslint/max-params":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/no-empty-object-type":"off","@typescript-eslint/no-magic-numbers":"off","@typescript-eslint/no-unnecessary-type-parameters":"off","@typescript-eslint/no-unused-vars":["error",{argsIgnorePattern:"^_",varsIgnorePattern:"^_",caughtErrorsIgnorePattern:"^_"}],"@typescript-eslint/prefer-destructuring":"off","@typescript-eslint/unbound-method":["error",{ignoreStatic:!0}],"@stylistic/array-bracket-newline":["error","consistent"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!1}],"@stylistic/comma-dangle":["error","never"],"@stylistic/indent":["error",4],"@stylistic/member-delimiter-style":["error",{multiline:{delimiter:"semi",requireLast:!0},singleline:{delimiter:"semi"}}],"@stylistic/no-trailing-spaces":["off"],"@stylistic/operator-linebreak":["error","after"],"@stylistic/quotes":["error","double"],"@stylistic/semi":["error","always"],"@stylistic/object-curly-newline":["error",{ObjectExpression:{multiline:!0,minProperties:1},ObjectPattern:{multiline:!0,minProperties:1}}],"@stylistic/object-property-newline":"error","jsdoc/require-description":["warn",{contexts:["ClassDeclaration","ClassProperty","FunctionDeclaration","MethodDefinition","TSEnumDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSTypeAliasDeclaration"]}],"jsdoc/require-jsdoc":["warn",{contexts:["ClassDeclaration","ClassProperty","FunctionDeclaration","MethodDefinition","TSEnumDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSTypeAliasDeclaration"]}],"jsdoc/require-returns":["warn",{checkGetters:!1}],"jsdoc/tag-lines":["warn","any",{count:1,startLines:1}]}},{files:["test/**/*"],rules:{"max-nested-callbacks":"off","jsdoc/require-jsdoc":"off","@typescript-eslint/dot-notation":"off","@typescript-eslint/no-unsafe-type-assertion":"off"}});var n=o(require("fs"),1);var y=require("child_process");function c(e,t,...i){let r=(0,y.spawnSync)(t,i,{stdio:["inherit",e?"pipe":"inherit","inherit"]});if(r.error!==void 0)throw r.error;if(r.status===null)throw new Error(`Terminated by signal ${r.signal}`);if(r.status!==0)throw new Error(`Failed with status ${r.status}`);return e?r.stdout.toString().split(`
2
- `).slice(0,-1):[]}function l(e,t){return`${"0".repeat(t-1)}${e}`.slice(-t)}function b(e,t){if(t!==void 0)for(let i in t)i.split("/")[0]===e&&(t[i]="alpha")}function O(){c(!1,"npm","update","--save");let e=new Date,t="package.json",i="_package.json",r=JSON.parse(n.readFileSync(t).toString()),s=r.name.split("/")[0];b(s,r.devDependencies),b(s,r.dependencies),n.writeFileSync(t,JSON.stringify(r,null,2)),n.renameSync(t,i);try{let[h,D,S]=r.version.split("-")[0].split(".").map(w=>Number(w));r.version=`${h}.${D}.${S+1}-alpha.${e.getFullYear()}${l(e.getMonth()+1,2)}${l(e.getDate(),2)}${l(e.getHours(),2)}${l(e.getMinutes(),2)}`,n.writeFileSync(t,JSON.stringify(r,null,2)),c(!1,"npm","run","build:dev"),c(!1,"npm","publish","--tag","alpha")}finally{n.rmSync(t),n.renameSync(i,t)}}0&&(module.exports={esLintConfigAIDCToolkit,publishDev});
3
- /*!
4
- * Copyright © 2024-2025 Dolphin Data Development Ltd. and AIDC Toolkit
5
- * contributors
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * https://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
package/dist/index.d.cts DELETED
@@ -1,10 +0,0 @@
1
- import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
-
3
- declare const esLintConfigAIDCToolkit: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
4
-
5
- /**
6
- * Publish to development npm registry.
7
- */
8
- declare function publishDev(): void;
9
-
10
- export { esLintConfigAIDCToolkit, publishDev };
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
-
4
- "files": [
5
- "src/index.ts"
6
- ],
7
-
8
- "compilerOptions": {
9
- "outDir": "dist",
10
- "emitDeclarationOnly": true,
11
- "declaration": true,
12
- "declarationMap": true
13
- }
14
- }
package/tsup.config.ts DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from "tsup";
2
-
3
- export default defineConfig({
4
- entry: ["src/index.ts"],
5
- format: ["cjs", "esm"],
6
- dts: true,
7
- clean: true
8
- });