Skip to content

Commit a8503fc

Browse files
committed
chore: deps update and fix doc build
1 parent 8c0c286 commit a8503fc

File tree

2 files changed

+39
-42
lines changed

2 files changed

+39
-42
lines changed

builddoc.js renamed to builddoc.mjs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
// @ts-check
1+
import td from 'typedoc';
2+
import ts from 'typescript';
3+
import * as path from 'path';
4+
import {globby} from 'globby';
25

3-
const td = require('typedoc');
4-
const ts = require('typescript');
5-
const path = require('path');
6-
const globby = require('globby');
7-
8-
const typedocJson = require('./typedoc');
6+
import typedocJson from './typedoc.js';
97

108
/**
119
* @param {Object} options
1210
* @param {string} options.entryPoint
1311
* @param {string} options.outDir
1412
* @param {Partial<import('typedoc').TypeDocOptions>} [typeDocOptions]
1513
*/
16-
const createTypeScriptApiDocs = (exports.createTypeScriptApiDocs = async ({ entryPoint, outDir }, typeDocOptions) => {
14+
export async function createTypeScriptApiDocs ({ entryPoint, outDir }, typeDocOptions) {
1715
const app = new td.Application();
1816
app.options.addReader(new td.TSConfigReader());
1917
console.log('createTypeScriptApiDocs', typeDocOptions);
@@ -41,7 +39,7 @@ const createTypeScriptApiDocs = (exports.createTypeScriptApiDocs = async ({ entr
4139
} else {
4240
throw new Error(`Error creating the TypeScript API docs for ${entryPoint}.`);
4341
}
44-
});
42+
};
4543
// app.generateDocs(project, "./docs");
4644
// app.generateJson(project, "./docs.json");
4745

package.json

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build.angular.win": "lerna run build.angular.win",
2020
"build.all": "lerna run build.all",
2121
"build.all.win": "lerna run build.all.win",
22-
"doc": "node builddoc && git add docs/* && git commit -m \"chore:doc\"",
22+
"doc": "node builddoc.mjs && git add docs/* && git commit -m \"chore:doc\"",
2323
"force_publish": "lerna publish from-package",
2424
"increment_version": "lerna version",
2525
"tsc": "lerna run tsc",
@@ -49,46 +49,45 @@
4949
"repository": "https://github.com/nativescript-community/ui-material-components",
5050
"readmeFilename": "README.md",
5151
"devDependencies": {
52-
"@angular/animations": "~11.2.0",
53-
"@angular/common": "~11.2.0",
54-
"@angular/compiler": "~11.2.0",
55-
"@angular/compiler-cli": "~11.2.0",
56-
"@angular/core": "~11.2.0",
57-
"@angular/forms": "~11.2.0",
58-
"@angular/platform-browser": "~11.2.0",
59-
"@angular/platform-browser-dynamic": "~11.2.0",
60-
"@angular/router": "~11.2.0",
61-
"@commitlint/cli": "^12.1.1",
62-
"@commitlint/config-conventional": "^12.1.1",
63-
"@nativescript-community/text": "^1.4.11",
64-
"@nativescript/angular": "ns8",
65-
"@nativescript/core": "8.0.1",
52+
"@angular/animations": "~11.2.14",
53+
"@angular/common": "~11.2.14",
54+
"@angular/compiler": "~11.2.14",
55+
"@angular/compiler-cli": "~11.2.14",
56+
"@angular/core": "~11.2.14",
57+
"@angular/forms": "~11.2.14",
58+
"@angular/platform-browser": "~11.2.14",
59+
"@angular/platform-browser-dynamic": "~11.2.14",
60+
"@angular/router": "~11.2.14",
61+
"@commitlint/cli": "^14.1.0",
62+
"@commitlint/config-conventional": "^14.1.0",
63+
"@nativescript-community/text": "^1.4.28",
64+
"@nativescript/angular": "12.2.0",
65+
"@nativescript/core": "8.1.5",
6666
"@nativescript/eslint-plugin": "0.0.4",
6767
"@nativescript/hook": "~2.0.0",
68-
"@nativescript/types": "8.0.0",
69-
"@nativescript/webpack": "beta",
70-
"@types/node": "~14.14.41",
71-
"@typescript-eslint/eslint-plugin": "4.22.0",
72-
"@typescript-eslint/parser": "4.22.0",
68+
"@nativescript/types": "8.1.1",
69+
"@nativescript/webpack": "5.0.0",
70+
"@types/node": "~16.11.7",
71+
"@typescript-eslint/eslint-plugin": "5.3.1",
72+
"@typescript-eslint/parser": "5.3.1",
7373
"cpy-cli": "~3.1.1",
74-
"eslint": "7.24.0",
75-
"eslint-config-prettier": "^8.2.0",
76-
"eslint-plugin-prettier": "^3.4.0",
77-
"eslint-plugin-vue": "^7.9.0",
78-
"globby": "^11.0.3",
79-
"husky": "^6.0.0",
74+
"eslint": "8.2.0",
75+
"eslint-config-prettier": "^8.3.0",
76+
"eslint-plugin-prettier": "^4.0.0",
77+
"eslint-plugin-vue": "^8.0.3",
78+
"globby": "^12.0.2",
79+
"husky": "^7.0.4",
8080
"lerna": "^4.0.0",
8181
"nativescript-vue": "~2.9.0",
8282
"ng-packagr": "~11.2.0",
83-
"prettier": "^2.2.1",
84-
"prompt": "^1.1.0",
83+
"prettier": "^2.4.1",
8584
"react-nativescript": "^3.0.0-beta.1",
8685
"rimraf": "^3.0.2",
87-
"rxjs": "^6.6.6",
88-
"ts-patch": "^1.3.2",
89-
"typedoc": "^0.20.35",
90-
"typescript": "~4.1.5",
91-
"vue": "2.6.12"
86+
"rxjs": "^7.4.0",
87+
"ts-patch": "^2.0.1",
88+
"typedoc": "^0.22.8",
89+
"typescript": "~4.4.4",
90+
"vue": "2.6.14"
9291
},
9392
"commitlint": {
9493
"extends": [

0 commit comments

Comments
 (0)