srcpack 0.1.2 → 0.1.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.
package/README.md CHANGED
@@ -69,7 +69,7 @@ Or add to `package.json`:
69
69
  }
70
70
  ```
71
71
 
72
- Patterns follow glob syntax. Prefix with `!` to exclude. `.gitignore` patterns are respected automatically.
72
+ Patterns follow glob syntax. Prefix with `!` to exclude. `.gitignore` patterns are respected automatically. Binary files are excluded.
73
73
 
74
74
  ### Google Drive Upload
75
75
 
@@ -82,9 +82,9 @@ export default defineConfig({
82
82
  },
83
83
  upload: {
84
84
  provider: "gdrive",
85
- folder: "srcpack/outputs", // target folder path
86
- clientId: "...", // OAuth 2.0 client ID
87
- clientSecret: "...", // OAuth 2.0 client secret
85
+ folderId: "1ABC...", // Google Drive folder ID (from URL)
86
+ clientId: "...",
87
+ clientSecret: "...",
88
88
  },
89
89
  });
90
90
  ```
@@ -96,25 +96,7 @@ export default defineConfig({
96
96
  3. Enable the Google Drive API
97
97
  4. Go to **Credentials** → **Create Credentials** → **OAuth client ID**
98
98
  5. Select **Desktop app**, then copy the client ID and secret
99
-
100
- Multiple destinations are supported via array:
101
-
102
- ```typescript
103
- upload: [
104
- {
105
- provider: "gdrive",
106
- folder: "backup1",
107
- clientId: "...",
108
- clientSecret: "...",
109
- },
110
- {
111
- provider: "gdrive",
112
- folder: "backup2",
113
- clientId: "...",
114
- clientSecret: "...",
115
- },
116
- ];
117
- ```
99
+ 6. Run `npx srcpack login` to authenticate
118
100
 
119
101
  ## Output Format
120
102
 
@@ -140,10 +122,12 @@ export function utils() {
140
122
  ## CLI
141
123
 
142
124
  ```bash
143
- npx srcpack # Bundle all, upload if gdrive configured
125
+ npx srcpack # Bundle all, upload if configured
144
126
  npx srcpack web api # Bundle specific bundles only
145
127
  npx srcpack --dry-run # Preview without writing files
128
+ npx srcpack --no-upload # Bundle only, skip upload
146
129
  npx srcpack init # Interactive config setup
130
+ npx srcpack login # Authenticate with Google Drive
147
131
  ```
148
132
 
149
133
  ## API