mirror of
https://github.com/Redocly/redoc.git
synced 2025-06-29 00:33:04 +03:00
chore: fix declarations emit
This commit is contained in:
parent
135651a8a6
commit
f7bf0b8912
|
@ -8,7 +8,6 @@
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationDir": "typings",
|
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true,
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"declarationDir": "typings"
|
||||||
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./custom.d.ts",
|
"./custom.d.ts",
|
||||||
"src/index.ts"
|
"src/index.ts"
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import * as webpack from 'webpack';
|
/* tslint:disable:no-implicit-dependencies */
|
||||||
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
||||||
import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
||||||
|
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||||
|
import * as webpack from 'webpack';
|
||||||
|
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
const nodeExternals = require('webpack-node-externals')({
|
const nodeExternals = require('webpack-node-externals')({
|
||||||
|
@ -54,8 +56,12 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
|
||||||
}
|
}
|
||||||
: (context, request, callback) => {
|
: (context, request, callback) => {
|
||||||
// ignore node-fetch dep of swagger2openapi as it is not used
|
// ignore node-fetch dep of swagger2openapi as it is not used
|
||||||
if (/node-fetch$/i.test(request)) return callback(null, 'var undefined');
|
if (/node-fetch$/i.test(request)) {
|
||||||
if (/esprima$/i.test(request)) return callback(null, 'var undefined');
|
return callback(null, 'var undefined');
|
||||||
|
}
|
||||||
|
if (/esprima$/i.test(request)) {
|
||||||
|
return callback(null, 'var undefined');
|
||||||
|
}
|
||||||
return nodeExternals(context, request, callback);
|
return nodeExternals(context, request, callback);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -69,6 +75,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
|
||||||
options: {
|
options: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
module: 'es2015',
|
module: 'es2015',
|
||||||
|
declaration: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user