From 0df7c0dc9a9f56487ef4a66fbd459709e9d682c0 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Sun, 7 Jan 2024 00:47:43 +0100 Subject: [PATCH] chore: fix some typos --- build/config.js | 2 +- build/pre-publish.js | 4 ++-- src/data/helper/sourceHelper.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/config.js b/build/config.js index 092f7b23a5..9d639e476d 100644 --- a/build/config.js +++ b/build/config.js @@ -108,7 +108,7 @@ exports.createECharts = function (opt = {}) { opt, { name: 'echarts', - // Ignore default exports, which is only for compitable code like: + // Ignore default exports, which is only for compatible code like: // import echarts from 'echarts/lib/echarts'; exports: 'named', format: format diff --git a/build/pre-publish.js b/build/pre-publish.js index f590d1e798..cd99e65793 100644 --- a/build/pre-publish.js +++ b/build/pre-publish.js @@ -19,7 +19,7 @@ /** * [Create CommonJS files]: - * Compatible with prevoius folder structure: `echarts/lib` exists in `node_modules` + * Compatible with previous folder structure: `echarts/lib` exists in `node_modules` * (1) Build all files to CommonJS to `echarts/lib`. * (2) Remove __DEV__. * (3) Mount `echarts/src/export.js` to `echarts/lib/echarts.js`. @@ -206,7 +206,7 @@ module.exports = async function () { }; async function runTsCompile(localTs, compilerOptions, srcPathList) { - // Must do it. becuase the value in tsconfig.json might be different from the inner representation. + // Must do it, because the value in tsconfig.json might be different from the inner representation. // For example: moduleResolution: "NODE" => moduleResolution: 2 const {options, errors} = localTs.convertCompilerOptionsFromJson(compilerOptions, ecDir); diff --git a/src/data/helper/sourceHelper.ts b/src/data/helper/sourceHelper.ts index f0277d3a1d..d1aa89d5ef 100644 --- a/src/data/helper/sourceHelper.ts +++ b/src/data/helper/sourceHelper.ts @@ -314,7 +314,7 @@ export function querySeriesUpstreamDatasetModel( export function queryDatasetUpstreamDatasetModels( datasetModel: DatasetModel ): DatasetModel[] { - // Only these attributes declared, we by defualt reference to `datasetIndex: 0`. + // Only these attributes declared, we by default reference to `datasetIndex: 0`. // Otherwise, no reference. if (!datasetModel.get('transform', true) && !datasetModel.get('fromTransformResult', true)