clever-tools 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/vendors/README_VENDORS.md +18 -0
- package/vendors/curlconverter-parse.js +3709 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clever-tools",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Command Line Interface for Clever Cloud.",
|
|
5
5
|
"main": "bin/clever.js",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"bin",
|
|
24
24
|
"src",
|
|
25
|
-
"scripts/*.sh"
|
|
25
|
+
"scripts/*.sh",
|
|
26
|
+
"vendors"
|
|
26
27
|
],
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@clevercloud/client": "^8.1.2",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Why do we have this vendors directory?
|
|
2
|
+
|
|
3
|
+
We depend on the the [`curlconverter`](https://www.npmjs.com/package/curlconverter) package.
|
|
4
|
+
It's only available as ESM.
|
|
5
|
+
This module format is no problem for a recent version of Node.js but it does not work when we build our auto packaged binary version of the CLI with pkg.
|
|
6
|
+
|
|
7
|
+
The next steps for this project are:
|
|
8
|
+
|
|
9
|
+
* find a replacement for pkg to build an auto packaged binary
|
|
10
|
+
* move the whole project to ESM
|
|
11
|
+
* eventually bundle/compile the code to a single file before building the binary
|
|
12
|
+
|
|
13
|
+
Before doing this, we introduced a quick & simple solution, juste for curlconverter:
|
|
14
|
+
|
|
15
|
+
* add `rollup` to dev dependencies
|
|
16
|
+
* bundle the only file we need (`node_modules/curlconverter/dist/src/parse.js`) to a single CJS file with rollup
|
|
17
|
+
* version the bundle in the repo (`vendors/curlconverter-parse.js`)
|
|
18
|
+
* add a npm task to build the bundle again if needed
|