@dagger.io/dagger 0.9.5 → 0.9.7

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.
Files changed (34) hide show
  1. package/README.md +10 -10
  2. package/dist/api/client.gen.d.ts +519 -480
  3. package/dist/api/client.gen.d.ts.map +1 -1
  4. package/dist/api/client.gen.js +885 -406
  5. package/dist/entrypoint/entrypoint.d.ts +1 -1
  6. package/dist/entrypoint/entrypoint.d.ts.map +1 -1
  7. package/dist/entrypoint/entrypoint.js +13 -25
  8. package/dist/entrypoint/invoke.d.ts +14 -6
  9. package/dist/entrypoint/invoke.d.ts.map +1 -1
  10. package/dist/entrypoint/invoke.js +21 -8
  11. package/dist/entrypoint/load.d.ts +42 -5
  12. package/dist/entrypoint/load.d.ts.map +1 -1
  13. package/dist/entrypoint/load.js +122 -25
  14. package/dist/entrypoint/register.d.ts +3 -2
  15. package/dist/entrypoint/register.d.ts.map +1 -1
  16. package/dist/entrypoint/register.js +15 -16
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/introspector/registry/registry.d.ts +1 -9
  21. package/dist/introspector/registry/registry.d.ts.map +1 -1
  22. package/dist/introspector/registry/registry.js +6 -25
  23. package/dist/introspector/scanner/metadata.d.ts +1 -1
  24. package/dist/introspector/scanner/scan.d.ts +8 -4
  25. package/dist/introspector/scanner/scan.d.ts.map +1 -1
  26. package/dist/introspector/scanner/scan.js +33 -22
  27. package/dist/introspector/scanner/serialize.d.ts +3 -3
  28. package/dist/introspector/scanner/serialize.js +3 -3
  29. package/dist/introspector/scanner/typeDefs.d.ts +16 -7
  30. package/dist/introspector/scanner/typeDefs.d.ts.map +1 -1
  31. package/dist/introspector/scanner/utils.js +6 -6
  32. package/dist/provisioning/default.d.ts +1 -1
  33. package/dist/provisioning/default.js +1 -1
  34. package/package.json +5 -4
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # Dagger NodeJS SDK
1
+ # Dagger TypeScript SDK
2
2
 
3
3
  A client package for running [Dagger](https://dagger.io/) pipelines.
4
4
 
5
- ## What is the Dagger NodeJS SDK?
5
+ ## What is the Dagger TypeScript SDK?
6
6
 
7
- The Dagger NodeJS SDK contains everything you need to develop CI/CD pipelines in Typescript of Javascript, and run them on any OCI-compatible container runtime.
7
+ The Dagger TypeScript SDK contains everything you need to develop CI/CD pipelines in TypeScript or Javascript, and run them on any OCI-compatible container runtime.
8
8
 
9
9
  ## Install
10
10
 
@@ -14,7 +14,7 @@ npm install @dagger.io/dagger --save-dev
14
14
 
15
15
  ## Local development
16
16
 
17
- You may want to work on the NodeSDK and test it directly on a local node project.
17
+ You may want to work on the TypeScript SDK and test it directly on a local node project.
18
18
 
19
19
  ### 1. Create a new Node project
20
20
 
@@ -52,32 +52,32 @@ You must also update your `tsconfig.json` to use `NodeNext` as `module`.
52
52
 
53
53
  ### 3. Symlink Dagger local module
54
54
 
55
- Go to the Dagger nodejs SDK directory and do the following :
55
+ Go to the Dagger TypeScript SDK directory and do the following :
56
56
 
57
57
  ```shell
58
- cd path/to/dagger/sdk/nodejs # go into the package directory
58
+ cd path/to/dagger/sdk/typescript # go into the package directory
59
59
  npm link # creates global link
60
60
  ```
61
61
 
62
- Go back to the root directory of your local project to link the nodejs sdk.
62
+ Go back to the root directory of your local project to link the TypeScript SDK.
63
63
 
64
64
  ```shell
65
65
  cd path/to/my_app # go into your project directory.
66
66
  npm link @dagger.io/dagger # link install the package
67
67
  ```
68
68
 
69
- :bulb: Any changes to `path/to/dagger/sdk/nodejs` will be reflected in `path/to/my_app/node_modules/@dagger.io/dagger`.
69
+ :bulb: Any changes to `path/to/dagger/sdk/typescript` will be reflected in `path/to/my_app/node_modules/@dagger.io/dagger`.
70
70
 
71
71
  ### 4. Make your contribution
72
72
 
73
73
  While making SDK code modification you should `watch` the input files:
74
74
 
75
75
  ```shell
76
- cd path/to/dagger/sdk/nodejs # go into the package directory
76
+ cd path/to/dagger/sdk/typescript # go into the package directory
77
77
  yarn watch # Recompile the code when input files are modified
78
78
  ```
79
79
 
80
- You can now import the local Dagger NodeSDK as if you were using the official one.
80
+ You can now import the local Dagger TypeScript SDK as if you were using the official one.
81
81
 
82
82
  ```ts
83
83
  import { connect } from "@dagger.io/dagger"