@yandex/ymaps3-cli
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -5,3 +5,3 @@ import got from 'got'; | ||
import fetch from 'cross-fetch'; | ||
import * as path from "path"; | ||
import * as path from 'path'; | ||
@@ -103,3 +103,3 @@ Object.assign(process.env, require('dotenv').config()); | ||
URLSearchParams, | ||
queueMicrotask: (cb: Function) => cb(), | ||
requestAnimationFrame: (cb: Function) => cb(), | ||
@@ -177,2 +177,2 @@ fetch: (url: string, query: object) => | ||
return result; | ||
}; | ||
} |
{ | ||
"name": "@yandex/ymaps3-cli", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Library for encapsulating the logic of autotests and building packages ymaps3 js API", | ||
@@ -12,3 +12,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@yandex/ymaps3-types": "^0.0.17", | ||
"@testing-library/react": "^12.1.2", | ||
"@types/got": "9.6.12", | ||
@@ -21,2 +21,3 @@ "@types/jest": "29.5.2", | ||
"@typescript-eslint/parser": "5.61.0", | ||
"@yandex/ymaps3-types": "^0.0.17", | ||
"ajv": "7.2.4", | ||
@@ -35,2 +36,3 @@ "cross-fetch": "4.0.0", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"style-loader": "3.3.3", | ||
@@ -37,0 +39,0 @@ "terser-webpack-plugin": "5.3.9", |
@@ -46,3 +46,3 @@ const path = require('path'); | ||
let rs = fs.createReadStream(file); | ||
if (/\.html?$/.test(req.path)) { | ||
if (/\.(html|tsx?|jsx?)$/.test(req.path)) { | ||
const readmeFile = path.join(dir, 'README.md'); | ||
@@ -49,0 +49,0 @@ const readme = fs.existsSync(readmeFile) ? fs.readFileSync(readmeFile, 'utf-8') : ''; |
Sorry, the diff of this file is not supported yet
57616
889
32