@microsoft/type2docfx 2.0.7-dev.1303134.0 → 2.0.7-dev.1305530.0

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/.eslintrc.js CHANGED
@@ -1,33 +1,29 @@
1
1
  module.exports = {
2
- env: {
3
- browser: false,
4
- node: true
5
- },
6
- extends: [
7
- 'plugin:@typescript-eslint/recommended',
8
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
9
- 'plugin:import/typescript',
10
- 'plugin:security/recommended',
11
- 'plugin:@eslint-community/eslint-comments/recommended'
12
- ],
13
- parser: '@typescript-eslint/parser',
14
- parserOptions: {
15
- tsconfigRootDir: __dirname,
16
- project: ['./tsconfig.json']
17
- },
18
- plugins: [
19
- '@typescript-eslint',
20
- 'import',
21
- 'security'
22
- ],
23
- settings: {
24
- 'import/resolver': {
25
- node: {
26
- extensions: ['.js', '.ts']
27
- }
28
- }
29
- },
30
- ignorePatterns: ['*.test.ts'],
31
- rules: {
32
- }
2
+ env: {
3
+ browser: false,
4
+ node: true,
5
+ },
6
+
7
+ extends: [
8
+ 'plugin:@typescript-eslint/recommended',
9
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
10
+ 'plugin:import/typescript',
11
+ 'plugin:security/recommended',
12
+ 'plugin:@eslint-community/eslint-comments/recommended',
13
+ ],
14
+ parser: '@typescript-eslint/parser',
15
+ parserOptions: {
16
+ tsconfigRootDir: __dirname,
17
+ project: ['./tsconfig.json'],
18
+ },
19
+ plugins: ['@typescript-eslint', 'import', 'security'],
20
+ settings: {
21
+ 'import/resolver': {
22
+ node: {
23
+ extensions: ['.js', '.ts'],
24
+ },
25
+ },
26
+ },
27
+ ignorePatterns: ['*.test.ts'],
28
+ rules: {},
33
29
  };
package/.husky/pre-commit CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env sh
2
2
  . "$(dirname -- "$0")/_/husky.sh"
3
3
 
4
- npx lint-staged
4
+ npx lint-staged
@@ -5,6 +5,6 @@
5
5
  // --------------------------------------------------------------------
6
6
 
7
7
  using System.Reflection;
8
- [assembly: AssemblyVersion("1.0.02318.243")]
9
- [assembly: AssemblyFileVersion("1.0.02318.243")]
10
- [assembly: AssemblyInformationalVersion("1.0.02318.243")]
8
+ [assembly: AssemblyVersion("1.0.02319.246")]
9
+ [assembly: AssemblyFileVersion("1.0.02319.246")]
10
+ [assembly: AssemblyInformationalVersion("1.0.02319.246")]
@@ -4,6 +4,6 @@
4
4
  // </auto-generated>
5
5
  // --------------------------------------------------------------------
6
6
 
7
- #define ASSEMBLY_VERSION "1.0.02318.243"
8
- #define ASSEMBLY_FILE_VERSION "1.0.02318.243"
9
- #define ASSEMBLY_INFORMATIONAL_VERSION "1.0.02318.243"
7
+ #define ASSEMBLY_VERSION "1.0.02319.246"
8
+ #define ASSEMBLY_FILE_VERSION "1.0.02319.246"
9
+ #define ASSEMBLY_INFORMATIONAL_VERSION "1.0.02319.246"
@@ -1 +1 @@
1
- 02318
1
+ 02319
@@ -1 +1 @@
1
- 72451fce
1
+ 3e6c57ce
@@ -1 +1 @@
1
- 1.0.02318.243
1
+ 1.0.02319.246
@@ -1 +1 @@
1
- 1.0.2318.243
1
+ 1.0.2319.246
@@ -1 +1 @@
1
- 1.0.02318243
1
+ 1.0.02319246
@@ -1 +1 @@
1
- 243
1
+ 246
@@ -1 +1 @@
1
- 1.0.02318.243
1
+ 1.0.02319.246
@@ -1 +1 @@
1
- 1.0.02318243
1
+ 1.0.02319246
@@ -1,5 +1,5 @@
1
1
  <root>
2
2
  <versions>
3
- <version name="filever" value="1.0.02318.243" />
3
+ <version name="filever" value="1.0.02319.246" />
4
4
  </versions>
5
5
  </root>
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@microsoft/type2docfx",
3
- "version": "2.0.7-dev.1303134.0",
3
+ "version": "2.0.7-dev.1305530.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@microsoft/type2docfx",
9
- "version": "2.0.7-dev.1303134.0",
9
+ "version": "2.0.7-dev.1305530.0",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "commander": "^9.4.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/type2docfx",
3
- "version": "2.0.7-dev.1303134.0",
3
+ "version": "2.0.7-dev.1305530.0",
4
4
  "description": "A tool to convert json format output from TypeDoc to schema driven reference model for DocFx to consume.",
5
5
  "main": "./dist/main.js",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  "prepublishOnly": "tsc",
15
15
  "prepare": "husky install",
16
16
  "dprint": "dprint fmt",
17
- "lint": "node tasks/check.js",
17
+ "validate": "node tasks/check.js",
18
18
  "coverage": "jest --coverage"
19
19
  },
20
20
  "repository": {
@@ -60,9 +60,9 @@
60
60
  "typedoc": "^0.23.28"
61
61
  },
62
62
  "lint-staged": {
63
- "**/*.{ts, json, js}": [
63
+ "**/*.{ts,json,js}": [
64
64
  "npm run dprint",
65
- "npm run lint"
65
+ "npm run validate"
66
66
  ]
67
67
  },
68
68
  "publishConfig": {
package/tasks/check.js CHANGED
@@ -1,29 +1,36 @@
1
- const chalk = require("chalk")
1
+ const chalk = require('chalk');
2
2
 
3
3
  function checkPackageVersionSame() {
4
- const packageVersion = require("../package.json").version;
5
- const lockVersion = require("../npm-shrinkwrap.json").version;
6
-
7
- if (packageVersion !== lockVersion) {
8
- console.log(`vension in packeg.json does not match version in npm-shrinkwrap.json, please run ${chalk.red.bold("npm install")} to update version in npm-shrinkwrap.json`)
9
- process.exit(1);
10
- }
4
+ const packageVersion = require('../package.json').version;
5
+ const lockVersion = require('../npm-shrinkwrap.json').version;
11
6
 
7
+ if (packageVersion !== lockVersion) {
8
+ console.log(
9
+ `vension in packeg.json does not match version in npm-shrinkwrap.json, please run ${chalk.red.bold(
10
+ 'npm install'
11
+ )} to update version in npm-shrinkwrap.json`
12
+ );
13
+ process.exit(1);
14
+ }
12
15
  }
13
16
 
14
17
  function checkExistADOArtifictDependencies() {
15
- const packages = require("../npm-shrinkwrap.json").packages
16
- for(const [key,value] of Object.entries(packages)) {
17
- if(value.resolved && !value.resolved.startsWith("https://registry.npmjs.org/")) {
18
- console.log(`some dependencies are not come from registry.npmjs.org, please comment ${chalk.red(".npmrc file")} and reinstall ${chalk.red.bold(key)} in npm-shrinkwrap.json`)
19
- process.exit(1);
20
- }
18
+ const packages = require('../npm-shrinkwrap.json').packages;
19
+ for (const [key, value] of Object.entries(packages)) {
20
+ if (value.resolved && !value.resolved.startsWith('https://registry.npmjs.org/')) {
21
+ console.log(
22
+ `some dependencies are not come from registry.npmjs.org, please comment ${chalk.red(
23
+ '.npmrc file'
24
+ )} and reinstall ${chalk.red.bold(key)} in npm-shrinkwrap.json`
25
+ );
26
+ process.exit(1);
21
27
  }
28
+ }
22
29
  }
23
30
 
24
31
  function check() {
25
- checkPackageVersionSame();
26
- checkExistADOArtifictDependencies();
32
+ checkPackageVersionSame();
33
+ checkExistADOArtifictDependencies();
27
34
  }
28
35
 
29
- check()
36
+ check();