gasup 1.0.2 → 1.0.3

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 (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,6 +10,18 @@ A simple CLI tool for bundling Google Apps Script projects with esbuild and the
10
10
  - **esbuild-gas-plugin integration**: Automatically handles GAS-specific optimizations
11
11
  - **File management**: Automatically copies `appsscript.json` and HTML files to the output directory
12
12
 
13
+ ## Making Functions Available in Google Apps Script
14
+
15
+ To make your functions executable in Google Apps Script, you need to expose them globally. Functions that are not exposed globally cannot be called from the GAS interface or triggers.
16
+
17
+ ```typescript
18
+ // src/index.ts
19
+
20
+ (global as any).helloWorld = () => {
21
+ console.log('Hello world!');
22
+ }
23
+ ```
24
+
13
25
  ## Installation
14
26
 
15
27
  Install gasup as a dev dependency:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gasup",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",