Skip to content

Commit e10e17a

Browse files
committed
docs(plugin-workflow-javascript): fix docs
1 parent af33a80 commit e10e17a

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

  • docs
    • en-US/handbook/workflow-javascript
    • fr-FR/handbook/workflow-javascript
    • ja-JP/handbook/workflow-javascript
    • ru-RU/handbook/workflow-javascript
    • zh-CN/handbook/workflow-javascript

docs/en-US/handbook/workflow-javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ Then add the package's relative (or absolute) path based on the application's CW
7575
WORKFLOW_SCRIPT_MODULES=./storage/node_modules/exceljs
7676
```
7777

78-
You can then use the `exceljs` package in your script:
78+
You can then use the `exceljs` package in your script (the `require` name must exactly match the one defined in the environment variable):
7979

8080
```js
81-
const ExcelJS = require('exceljs');
81+
const ExcelJS = require('./storage/node_modules/exceljs');
8282
// ...
8383
```
8484

docs/fr-FR/handbook/workflow-javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ Then add the package's relative (or absolute) path based on the application's CW
6969
WORKFLOW_SCRIPT_MODULES=./storage/node_modules/exceljs
7070
```
7171

72-
You can then use the `exceljs` package in your script:
72+
You can then use the `exceljs` package in your script (the `require` name must exactly match the one defined in the environment variable):
7373

7474
```js
75-
const ExcelJS = require('exceljs');
75+
const ExcelJS = require('./storage/node_modules/exceljs');
7676
// ...
7777
```
7878

docs/ja-JP/handbook/workflow-javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ Then add the package's relative (or absolute) path based on the application's CW
7575
WORKFLOW_SCRIPT_MODULES=./storage/node_modules/exceljs
7676
```
7777

78-
You can then use the `exceljs` package in your script:
78+
You can then use the `exceljs` package in your script (the `require` name must exactly match the one defined in the environment variable):
7979

8080
```js
81-
const ExcelJS = require('exceljs');
81+
const ExcelJS = require('./storage/node_modules/exceljs');
8282
// ...
8383
```
8484

docs/ru-RU/handbook/workflow-javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ Then add the package's relative (or absolute) path based on the application's CW
7575
WORKFLOW_SCRIPT_MODULES=./storage/node_modules/exceljs
7676
```
7777

78-
You can then use the `exceljs` package in your script:
78+
You can then use the `exceljs` package in your script (the `require` name must exactly match the one defined in the environment variable):
7979

8080
```js
81-
const ExcelJS = require('exceljs');
81+
const ExcelJS = require('./storage/node_modules/exceljs');
8282
// ...
8383
```
8484

docs/zh-CN/handbook/workflow-javascript/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ npm i --no-save --no-package-lock --prefix . exceljs
7575
WORKFLOW_SCRIPT_MODULES=./storage/node_modules/exceljs
7676
```
7777

78-
即可在脚本中使用 `exceljs` 包:
78+
即可在脚本中使用 `exceljs``require` 的名称需要与环境变量中定义的完全一致)
7979

8080
```js
81-
const ExcelJS = require('exceljs');
81+
const ExcelJS = require('./storage/node_modules/exceljs');
8282
// ...
8383
```
8484

0 commit comments

Comments
 (0)