Skip to content

Commit 22f5539

Browse files
authored
CLOUDP-298233: use JS instead of cjs (#427)
1 parent 5bf5528 commit 22f5539

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@
4343
"globals": "^15.14.0",
4444
"jest": "^29.7.0",
4545
"prettier": "3.5.0"
46+
},
47+
"engineStrict": false,
48+
"engines": {
49+
"node": ">=20.0.0"
4650
}
4751
}

tools/.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
golang 1.23.6
2+
nodejs 20.9.0
3+

tools/postman/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ transform_collection:
1919

2020
.PHONY: transform_collection_js
2121
transform_collection_js:
22-
node ./scripts/transform-postman.cjs
22+
node ./scripts/transform-postman.js
2323

2424
.PHONY: transform_collection_test
2525
transform_collection_test:

tools/postman/scripts/transform-postman.cjs renamed to tools/postman/scripts/transform-postman.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const fs = require('fs');
2-
const path = require('path');
3-
const _ = require('lodash');
1+
import fs from 'fs';
2+
import path from 'path';
3+
import _ from 'lodash';
44

55
/**
66
# Prepare collection for Postman API

0 commit comments

Comments
 (0)