Skip to content

Commit

Permalink
chore: Fix build target
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Sep 20, 2024
1 parent 906362c commit 2157a6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scripts/build.cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ const clientManifest = require('@diplodoc/client/manifest');
const assets = [...clientManifest.js, ...clientManifest.css];

const {version, dependencies} = require('../package.json');
const {compilerOptions: {target}} = require('../tsconfig.json');

const commonConfig = {
tsconfig: './tsconfig.json',
platform: 'node',
target: target,
target: 'ES6',
format: 'cjs',
bundle: true,
sourcemap: true,
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"extends": "@diplodoc/tsconfig",
"compilerOptions": {
"lib": ["ES2019"],
"target": "es6",
"target": "ES2019",
"outDir": "build",
"module": "CommonJS",
"module": "preserve",
"moduleResolution": "bundler",
"paths": {
"~/*": ["./src/*"]
}
Expand Down

0 comments on commit 2157a6b

Please sign in to comment.