Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
434 changes: 142 additions & 292 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions packages/chatdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@oclif/test": "^1.2.4",
"@oclif/tslint": "^3.1.1",
"@types/chai": "^4.1.7",
"@types/fs-extra": "^5.0.5",
"@types/mocha": "^5.2.6",
"@types/node": "^10.14.6",
"@types/rimraf": "^2.0.2",
Expand All @@ -38,9 +39,9 @@
"mocha": "^6.2.2",
"nyc": "^14.1.1",
"rimraf": "^2.6.3",
"ts-node": "^8.1.0",
"ts-node": "^9.0.0",
"tslint": "^5.16.0",
"typescript": "3.5.3"
"typescript": "^4.0.3"
},
"engines": {
"node": ">=8.0.0"
Expand Down
11 changes: 6 additions & 5 deletions packages/chatdown/test/commands/chatdown/convert.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {expect, test} from '@oclif/test'
import * as cp from 'child_process';
import * as rimraf from 'rimraf';
let pkg = require('../../../package.json');
let assert = require('assert');
const fs = require('fs-extra')
import assert from 'assert';
import fs from 'fs-extra';
import rimraf from 'rimraf';
import {expect, test} from '@oclif/test'

const pkg = require('../../../package.json');

describe('chatdown:convert', function() {

Expand Down
3 changes: 0 additions & 3 deletions packages/chatdown/test/hook.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/chatdown/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--require test/hook.js
--require ../../test/hook.js
--require source-map-support/register
--recursive
--timeout 10000
**/*.test.{ts,js}
**/*.test.{ts,js}
6 changes: 1 addition & 5 deletions packages/chatdown/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": true,
"noImplicitAny": false
},
"extends": "../tsconfig.json",
"references": [
{"path": ".."}
]
Expand Down
9 changes: 2 additions & 7 deletions packages/chatdown/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": true,
"importHelpers": true,
"module": "commonjs",
"outDir": "lib",
"rootDir": "src",
"strict": true,
"target": "es2017",
"composite": true
"rootDir": "src"
},
"include": [
"src/**/*"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"nock": "^11.7.0",
"nyc": "^14.1.1",
"rimraf": "^2.6.3",
"ts-node": "^8.1.0",
"ts-node": "^9.0.0",
"tslint": "^5.16.0",
"typescript": "^3.5.3"
"typescript": "^4.0.3"
}
}
3 changes: 0 additions & 3 deletions packages/cli/test/hook.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/cli/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--require test/hook.js
--require ../../test/hook.js
--require source-map-support/register
--recursive
--timeout 60000
**/*.test.{ts,js}
**/*.test.{ts,js}
3 changes: 1 addition & 2 deletions packages/cli/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../tsconfig",
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": true,
"noImplicitAny": false
},
"references": [
Expand Down
10 changes: 2 additions & 8 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": true,
"importHelpers": true,
"module": "commonjs",
"outDir": "lib",
"rootDir": "src",
"sourceMap": true,
"strict": true,
"target": "es2017",
"composite": true
"rootDir": "src"
},
"include": [
"src/**/*"
Expand Down
4 changes: 2 additions & 2 deletions packages/command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"rimraf": "^2.6.3",
"source-map-support": "~0.5.16",
"testdouble": "^3.11.0",
"ts-node": "^8.1.0",
"ts-node": "^9.0.0",
"tslint": "^5.16.0",
"typescript": "^3.5.3"
"typescript": "^4.0.3"
}
}
3 changes: 0 additions & 3 deletions packages/command/test/hook.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/command/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--require test/hook.js
--require ../../test/hook.js
--require source-map-support/register
--recursive
--timeout 60000
**/*.test.{ts,js}
**/*.test.{ts,js}
6 changes: 1 addition & 5 deletions packages/command/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": true,
"noImplicitAny": false
},
"extends": "../tsconfig.json",
"references": [
{"path": ".."}
]
Expand Down
19 changes: 5 additions & 14 deletions packages/command/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"importHelpers": true,
"sourceMap": true,
"module": "commonjs",
"outDir": "./lib",
"outDir": "lib",
"pretty": true,
"rootDirs": [
"./src"
],
"strict": true,
"target": "es2017"
"resolveJsonModule": true,
"rootDir": "src"
},
"include": [
"./src/**/*"
"src/**/*"
]
}
4 changes: 2 additions & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"mocha": "^6.2.2",
"nyc": "^14.1.1",
"rimraf": "^2.6.3",
"ts-node": "^8.3.0",
"ts-node": "^9.0.0",
"tslint": "^5.18.0",
"typescript": "^3.5.3"
"typescript": "^4.0.3"
}
}
3 changes: 0 additions & 3 deletions packages/config/test/hook.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/config/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--require test/hook.js
--require ../../test/hook.js
--require source-map-support/register
--recursive
--timeout 10000
**/*.test.{ts,js}
**/*.test.{ts,js}
6 changes: 1 addition & 5 deletions packages/config/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": true,
"noImplicitAny": false
},
"extends": "../tsconfig.json",
"references": [
{"path": ".."}
]
Expand Down
8 changes: 2 additions & 6 deletions packages/config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": true,
"importHelpers": true,
"module": "commonjs",
"outDir": "lib",
"rootDir": "src",
"strict": true,
"target": "es2017"
"rootDir": "src"
},
"include": [
"src/**/*"
Expand Down
4 changes: 2 additions & 2 deletions packages/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
"mocha": "^6.2.2",
"nyc": "^14.1.1",
"rimraf": "^2.6.3",
"ts-node": "^8.3.0",
"ts-node": "^9.0.0",
"tslint": "^5.18.0",
"typescript": "^3.5.3"
"typescript": "^4.0.3"
}
}
6 changes: 2 additions & 4 deletions packages/dialog/src/library/dialogTracker.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#!/usr/bin/env node

/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

export * from './schemaTracker';
import * as fs from 'fs-extra';
import * as glob from 'globby';
import * as parser from '@apidevtools/json-schema-ref-parser'
import * as path from 'path';
import * as st from './schemaTracker';
import glob from 'globby';
import parser from '@apidevtools/json-schema-ref-parser'

let clone = require('clone')

Expand Down
11 changes: 6 additions & 5 deletions packages/dialog/src/library/schemaMerger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
* Licensed under the MIT License.
*/

import * as Validator from 'ajv'
import * as fs from 'fs-extra'
import * as glob from 'globby'
import * as hash from './hash'
import * as nuget from '@snyk/nuget-semver'
import * as os from 'os'
import * as parser from '@apidevtools/json-schema-ref-parser'
import * as ppath from 'path'
import {JsonPointer as ptr} from 'json-ptr'
import * as nuget from '@snyk/nuget-semver'
import * as xp from 'xml2js'
import Validator from 'ajv'
import glob from 'globby'
import parser from '@apidevtools/json-schema-ref-parser'
import {JsonPointer as ptr} from 'json-ptr'

let allof: any = require('json-schema-merge-allof')
let clone: any = require('clone')
let getUri: any = require('get-uri')
Expand Down
7 changes: 3 additions & 4 deletions packages/dialog/src/library/schemaTracker.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env node

/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

import * as ajv from 'ajv';
import * as parser from '@apidevtools/json-schema-ref-parser'
import ajv from 'ajv';
import parser from '@apidevtools/json-schema-ref-parser'

let getUri: any = require('get-uri')

// Get JSON from a URI.
Expand Down
11 changes: 5 additions & 6 deletions packages/dialog/test/commands/dialog/verify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ describe('dialog:verify', () => {
.stderr()
.command(["dialog:verify", `${path.join(__dirname, './examples/root/*.dialog')}`, '--verbose'])
.it('verify all', ctx => {
expect(ctx.stderr.match(/DLG001/).length == 7, 'Wrong number of schema errors')
expect(ctx.stderr.match(/DLG002/).length == 3, 'Wrong number of multiple definitions')
expect(ctx.stderr.match(/DLG003/).length == 1, 'Wrong number of mising definitions')
expect(ctx.stderr.match(/DLG004/).length == 1, 'Wrong number of type mismatches')
expect(ctx.stderr.match(/DLG005/).length == 6, 'Wrong number of unsued ids')
expect(ctx.stderr.match(/DLG001/)!.length == 7, 'Wrong number of schema errors')
expect(ctx.stderr.match(/DLG002/)!.length == 3, 'Wrong number of multiple definitions')
expect(ctx.stderr.match(/DLG003/)!.length == 1, 'Wrong number of mising definitions')
expect(ctx.stderr.match(/DLG004/)!.length == 1, 'Wrong number of type mismatches')
expect(ctx.stderr.match(/DLG005/)!.length == 6, 'Wrong number of unsued ids')
expect(ctx.stdout).to.contain('4 files')
expect(ctx.stderr)
.to.contain('Warnings: 2')
.to.contain('Errors: 12')
})
})

3 changes: 0 additions & 3 deletions packages/dialog/test/hook.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/dialog/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--require test/hook.js
--require ../../test/hook.js
--require source-map-support/register
--recursive
--timeout 60000
--slow 10000
**/*.test.{ts,js}
**/*.test.{ts,js}
15 changes: 5 additions & 10 deletions packages/dialog/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": true,
"noImplicitAny": false
},
"references": [
{"path": ".."}
]
}

"extends": "../tsconfig.json",
"references": [
{"path": ".."}
]
}
26 changes: 10 additions & 16 deletions packages/dialog/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"compilerOptions": {
"composite": true,
"declaration": true,
"importHelpers": true,
"module": "commonjs",
"outDir": "lib",
"rootDir": "src",
"sourceMap": true,
"strict": true,
"target": "es2017",
"noImplicitAny": false
},
"include": [
"src/**/*"
]
}
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
"noImplicitAny": false
},
"include": [
"src/**/*"
]
}
4 changes: 2 additions & 2 deletions packages/lg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"globby": "^10.0.2",
"mocha": "^5.2.0",
"nyc": "^14.1.1",
"ts-node": "^8.6.2",
"typescript": "^3.7.5",
"ts-node": "^9.0.0",
"typescript": "^4.0.3",
"rimraf": "^2.6.3"
},
"engines": {
Expand Down
Loading