@vscode/vsce 2.15.0
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/LICENSE +18 -0
- package/README.md +105 -0
- package/ThirdPartyNotices.txt +292 -0
- package/out/api.d.ts +59 -0
- package/out/api.js +48 -0
- package/out/main.js +229 -0
- package/out/manifest.js +3 -0
- package/out/nls.js +22 -0
- package/out/npm.js +190 -0
- package/out/package.js +1326 -0
- package/out/publicgalleryapi.js +39 -0
- package/out/publish.js +186 -0
- package/out/search.js +65 -0
- package/out/show.js +71 -0
- package/out/store.js +225 -0
- package/out/util.js +165 -0
- package/out/validation.js +120 -0
- package/out/viewutils.js +73 -0
- package/out/xml.js +11 -0
- package/out/zip.js +57 -0
- package/package.json +99 -0
- package/vsce +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
Copyright (c) Microsoft Corporation
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
|
|
9
|
+
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
|
|
10
|
+
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
|
|
11
|
+
is furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
16
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
17
|
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
|
18
|
+
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# vsce
|
|
2
|
+
|
|
3
|
+
> _The Visual Studio Code Extension Manager_
|
|
4
|
+
|
|
5
|
+
[](https://github.com/microsoft/vsce/actions?query=workflow%3Aci)
|
|
6
|
+
[](https://npmjs.org/package/vsce)
|
|
7
|
+
[](https://conventionalcommits.org)
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
- [Node.js](https://nodejs.org/en/) at least `14.x.x`
|
|
12
|
+
|
|
13
|
+
Or simply [Docker](#usage-via-docker).
|
|
14
|
+
|
|
15
|
+
### Linux
|
|
16
|
+
|
|
17
|
+
In order to save credentials safely, this project uses [keytar](https://www.npmjs.com/package/keytar) which uses `libsecret`, which you may need to install before publishing extensions. Setting the `VSCE_STORE=file` environment variable will revert back to the file credential store. Using the `VSCE_PAT` environment variable will also avoid using keytar.
|
|
18
|
+
|
|
19
|
+
Depending on your distribution, you will need to run the following command:
|
|
20
|
+
|
|
21
|
+
- Debian/Ubuntu: `sudo apt-get install libsecret-1-dev`
|
|
22
|
+
- Alpine: `apk add libsecret`
|
|
23
|
+
- Red Hat-based: `sudo yum install libsecret-devel`
|
|
24
|
+
- Arch Linux: `sudo pacman -S libsecret`
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
Install vsce globally:
|
|
29
|
+
|
|
30
|
+
```console
|
|
31
|
+
npm install --global @vscode/vsce
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Verify the installation:
|
|
35
|
+
|
|
36
|
+
```console
|
|
37
|
+
vsce --version
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`vsce` is meant to be mainly used as a command line tool. It can also be used a library since it exposes a small [API](https://github.com/microsoft/vscode-vsce/blob/main/src/api.ts). When using vsce as a library be sure to sanitize any user input used in API calls, as a security measurement.
|
|
41
|
+
|
|
42
|
+
## Usage via Docker
|
|
43
|
+
|
|
44
|
+
You can also build a container for running vsce:
|
|
45
|
+
|
|
46
|
+
```console
|
|
47
|
+
$ DOCKER_BUILDKIT=1 docker build --tag vsce "https://github.com/microsoft/vscode-vsce.git#main"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Validate the container:
|
|
51
|
+
|
|
52
|
+
```console
|
|
53
|
+
docker run --rm -it vsce --version
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Publish your local extension:
|
|
57
|
+
|
|
58
|
+
```console
|
|
59
|
+
docker run --rm -it -v "$(pwd)":/workspace vsce publish
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Configuration
|
|
63
|
+
|
|
64
|
+
You can configure the behavior of `vsce` by using CLI flags (run `vsce --help` to list them all). Example:
|
|
65
|
+
|
|
66
|
+
```console
|
|
67
|
+
vsce publish --baseImagesUrl https://my.custom/base/images/url
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Or you can also set them in the `package.json`, so that you avoid having to retype the common options again. Example:
|
|
71
|
+
|
|
72
|
+
```jsonc
|
|
73
|
+
// package.json
|
|
74
|
+
{
|
|
75
|
+
"vsce": {
|
|
76
|
+
"baseImagesUrl": "https://my.custom/base/images/url"
|
|
77
|
+
"dependencies": true,
|
|
78
|
+
"yarn": false
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Development
|
|
84
|
+
|
|
85
|
+
First clone this repository, then:
|
|
86
|
+
|
|
87
|
+
```console
|
|
88
|
+
$ npm install
|
|
89
|
+
|
|
90
|
+
$ npm run watch:build # or `watch:test` to also build tests
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Once the watcher is up and running, you can run out of sources with:
|
|
94
|
+
|
|
95
|
+
```console
|
|
96
|
+
node vsce
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
This project uses [semantic-release](https://semantic-release.gitbook.io/semantic-release/) and commit messages must follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec. This allows us to effortlessly automate releases.
|
|
100
|
+
|
|
101
|
+
## About
|
|
102
|
+
|
|
103
|
+
This tool assists in packaging and publishing Visual Studio Code extensions.
|
|
104
|
+
|
|
105
|
+
Read the [**Documentation**](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code website.
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
microsoft-vscode-vsce
|
|
2
|
+
|
|
3
|
+
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
|
4
|
+
Do Not Translate or Localize
|
|
5
|
+
|
|
6
|
+
This project incorporates components from the projects listed below. The original copyright notices and the licenses
|
|
7
|
+
under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted
|
|
8
|
+
herein, whether by implication, estoppel or otherwise.
|
|
9
|
+
|
|
10
|
+
1. commander version 2.8.1 (https://github.com/tj/commander.js)
|
|
11
|
+
2. denodeify version 1.2.1 (https://github.com/matthew-andrews/denodeify)
|
|
12
|
+
3. glob version 5.0.14 (https://github.com/isaacs/node-glob)
|
|
13
|
+
4. lodash version 3.10.1 (https://github.com/lodash/lodash)
|
|
14
|
+
5. mime version 1.3.4 (https://github.com/broofa/node-mime)
|
|
15
|
+
6. minimatch version 2.0.10 (https://github.com/isaacs/minimatch)
|
|
16
|
+
7. osenv version 0.1.3 (https://github.com/npm/osenv)
|
|
17
|
+
8. read version 1.0.7 (https://github.com/isaacs/read)
|
|
18
|
+
9. semver version 5.1.0 (https://github.com/npm/node-semver)
|
|
19
|
+
10. tmp version 0.0.27 (https://github.com/raszi/node-tmp)
|
|
20
|
+
11. url-join version 0.0.1 (https://github.com/jfromaniello/url-join)
|
|
21
|
+
12. vso-node-api version 0.5.0 (https://github.com/Microsoft/vso-node-api)
|
|
22
|
+
13. yauzl version 2.3.1 (https://github.com/thejoshwolfe/yauzl)
|
|
23
|
+
14. yazl version 2.2.2 (https://github.com/thejoshwolfe/yazl)
|
|
24
|
+
|
|
25
|
+
%% commander NOTICES AND INFORMATION BEGIN HERE
|
|
26
|
+
(The MIT License)
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
|
|
29
|
+
|
|
30
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
31
|
+
a copy of this software and associated documentation files (the
|
|
32
|
+
'Software'), to deal in the Software without restriction, including
|
|
33
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
34
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
35
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
36
|
+
the following conditions:
|
|
37
|
+
|
|
38
|
+
The above copyright notice and this permission notice shall be
|
|
39
|
+
included in all copies or substantial portions of the Software.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
42
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
43
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
44
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
45
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
46
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
47
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
48
|
+
END OF commander NOTICES AND INFORMATION
|
|
49
|
+
|
|
50
|
+
%% denodeify NOTICES AND INFORMATION BEGIN HERE
|
|
51
|
+
Credits and collaboration
|
|
52
|
+
|
|
53
|
+
The lead developer of denodeify is Matt Andrews at FT Labs with much help and support from Kornel Lesiński. All open source code released by FT Labs is licenced under the MIT licence. We welcome comments, feedback and suggestions. Please feel free to raise an issue or pull request.
|
|
54
|
+
END OF denodeify NOTICES AND INFORMATION
|
|
55
|
+
|
|
56
|
+
%% glob NOTICES AND INFORMATION BEGIN HERE
|
|
57
|
+
The ISC License
|
|
58
|
+
|
|
59
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
60
|
+
|
|
61
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
62
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
63
|
+
copyright notice and this permission notice appear in all copies.
|
|
64
|
+
|
|
65
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
66
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
67
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
68
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
69
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
70
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
71
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
72
|
+
END OF glob NOTICES AND INFORMATION
|
|
73
|
+
|
|
74
|
+
%% lodash NOTICES AND INFORMATION BEGIN HERE
|
|
75
|
+
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
|
76
|
+
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
|
|
77
|
+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
78
|
+
|
|
79
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
80
|
+
a copy of this software and associated documentation files (the
|
|
81
|
+
"Software"), to deal in the Software without restriction, including
|
|
82
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
83
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
84
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
85
|
+
the following conditions:
|
|
86
|
+
|
|
87
|
+
The above copyright notice and this permission notice shall be
|
|
88
|
+
included in all copies or substantial portions of the Software.
|
|
89
|
+
|
|
90
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
91
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
92
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
93
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
94
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
95
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
96
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
97
|
+
END OF lodash NOTICES AND INFORMATION
|
|
98
|
+
|
|
99
|
+
%% mime NOTICES AND INFORMATION BEGIN HERE
|
|
100
|
+
Copyright (c) 2010 Benjamin Thomas, Robert Kieffer
|
|
101
|
+
|
|
102
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
103
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
104
|
+
in the Software without restriction, including without limitation the rights
|
|
105
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
106
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
107
|
+
furnished to do so, subject to the following conditions:
|
|
108
|
+
|
|
109
|
+
The above copyright notice and this permission notice shall be included in
|
|
110
|
+
all copies or substantial portions of the Software.
|
|
111
|
+
|
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
113
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
114
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
115
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
116
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
117
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
118
|
+
THE SOFTWARE.
|
|
119
|
+
END OF mime NOTICES AND INFORMATION
|
|
120
|
+
|
|
121
|
+
%% minimatch NOTICES AND INFORMATION BEGIN HERE
|
|
122
|
+
The ISC License
|
|
123
|
+
|
|
124
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
125
|
+
|
|
126
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
127
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
128
|
+
copyright notice and this permission notice appear in all copies.
|
|
129
|
+
|
|
130
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
131
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
132
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
133
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
134
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
135
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
136
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
137
|
+
END OF minimatch NOTICES AND INFORMATION
|
|
138
|
+
|
|
139
|
+
%% osenv NOTICES AND INFORMATION BEGIN HERE
|
|
140
|
+
The ISC License
|
|
141
|
+
|
|
142
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
143
|
+
|
|
144
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
145
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
146
|
+
copyright notice and this permission notice appear in all copies.
|
|
147
|
+
|
|
148
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
149
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
150
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
151
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
152
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
153
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
154
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
155
|
+
END OF osenv NOTICES AND INFORMATION
|
|
156
|
+
|
|
157
|
+
%% read NOTICES AND INFORMATION BEGIN HERE
|
|
158
|
+
The ISC License
|
|
159
|
+
|
|
160
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
161
|
+
|
|
162
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
163
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
164
|
+
copyright notice and this permission notice appear in all copies.
|
|
165
|
+
|
|
166
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
167
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
168
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
169
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
170
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
171
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
172
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
173
|
+
END OF read NOTICES AND INFORMATION
|
|
174
|
+
|
|
175
|
+
%% semver NOTICES AND INFORMATION BEGIN HERE
|
|
176
|
+
The ISC License
|
|
177
|
+
|
|
178
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
179
|
+
|
|
180
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
181
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
182
|
+
copyright notice and this permission notice appear in all copies.
|
|
183
|
+
|
|
184
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
185
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
186
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
187
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
188
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
189
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
190
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
191
|
+
END OF semver NOTICES AND INFORMATION
|
|
192
|
+
|
|
193
|
+
%% tmp NOTICES AND INFORMATION BEGIN HERE
|
|
194
|
+
The MIT License (MIT)
|
|
195
|
+
|
|
196
|
+
Copyright (c) 2014 KARASZI István
|
|
197
|
+
|
|
198
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
199
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
200
|
+
in the Software without restriction, including without limitation the rights
|
|
201
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
202
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
203
|
+
furnished to do so, subject to the following conditions:
|
|
204
|
+
|
|
205
|
+
The above copyright notice and this permission notice shall be included in all
|
|
206
|
+
copies or substantial portions of the Software.
|
|
207
|
+
|
|
208
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
209
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
210
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
211
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
212
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
213
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
214
|
+
SOFTWARE.
|
|
215
|
+
END OF tmp NOTICES AND INFORMATION
|
|
216
|
+
|
|
217
|
+
%% url-join NOTICES AND INFORMATION BEGIN HERE
|
|
218
|
+
License
|
|
219
|
+
MIT
|
|
220
|
+
END OF url-join NOTICES AND INFORMATION
|
|
221
|
+
|
|
222
|
+
%% vso-node-api NOTICES AND INFORMATION BEGIN HERE
|
|
223
|
+
The MIT License (MIT)
|
|
224
|
+
|
|
225
|
+
Copyright (c) 2015 Microsoft
|
|
226
|
+
|
|
227
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
228
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
229
|
+
in the Software without restriction, including without limitation the rights
|
|
230
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
231
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
232
|
+
furnished to do so, subject to the following conditions:
|
|
233
|
+
|
|
234
|
+
The above copyright notice and this permission notice shall be included in all
|
|
235
|
+
copies or substantial portions of the Software.
|
|
236
|
+
|
|
237
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
238
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
239
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
240
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
241
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
242
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
243
|
+
SOFTWARE.
|
|
244
|
+
END OF vso-node-api NOTICES AND INFORMATION
|
|
245
|
+
|
|
246
|
+
%% yauzl NOTICES AND INFORMATION BEGIN HERE
|
|
247
|
+
The MIT License (MIT)
|
|
248
|
+
|
|
249
|
+
Copyright (c) 2014 Josh Wolfe
|
|
250
|
+
|
|
251
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
252
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
253
|
+
in the Software without restriction, including without limitation the rights
|
|
254
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
255
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
256
|
+
furnished to do so, subject to the following conditions:
|
|
257
|
+
|
|
258
|
+
The above copyright notice and this permission notice shall be included in all
|
|
259
|
+
copies or substantial portions of the Software.
|
|
260
|
+
|
|
261
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
262
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
263
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
264
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
265
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
266
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
267
|
+
SOFTWARE.
|
|
268
|
+
END OF yauzl NOTICES AND INFORMATION
|
|
269
|
+
|
|
270
|
+
%% yazl NOTICES AND INFORMATION BEGIN HERE
|
|
271
|
+
The MIT License (MIT)
|
|
272
|
+
|
|
273
|
+
Copyright (c) 2014 Josh Wolfe
|
|
274
|
+
|
|
275
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
276
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
277
|
+
in the Software without restriction, including without limitation the rights
|
|
278
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
279
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
280
|
+
furnished to do so, subject to the following conditions:
|
|
281
|
+
|
|
282
|
+
The above copyright notice and this permission notice shall be included in all
|
|
283
|
+
copies or substantial portions of the Software.
|
|
284
|
+
|
|
285
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
286
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
287
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
288
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
289
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
290
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
291
|
+
SOFTWARE.
|
|
292
|
+
END OF yazl NOTICES AND INFORMATION
|
package/out/api.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IPublishOptions as _IPublishOptions } from './publish';
|
|
2
|
+
import { IPackageOptions } from './package';
|
|
3
|
+
export type { IPackageOptions } from './package';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated prefer IPackageOptions instead
|
|
6
|
+
*/
|
|
7
|
+
export declare type IBaseVSIXOptions = Pick<IPackageOptions, 'baseContentUrl' | 'baseImagesUrl' | 'githubBranch' | 'gitlabBranch' | 'useYarn' | 'target' | 'preRelease'>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated prefer IPackageOptions instead
|
|
10
|
+
*/
|
|
11
|
+
export declare type ICreateVSIXOptions = Pick<IPackageOptions, 'cwd' | 'packagePath'> & IBaseVSIXOptions;
|
|
12
|
+
/**
|
|
13
|
+
* The supported list of package managers.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum PackageManager {
|
|
16
|
+
Npm = 0,
|
|
17
|
+
Yarn = 1,
|
|
18
|
+
None = 2
|
|
19
|
+
}
|
|
20
|
+
export interface IListFilesOptions {
|
|
21
|
+
/**
|
|
22
|
+
* The working directory of the extension. Defaults to `process.cwd()`.
|
|
23
|
+
*/
|
|
24
|
+
cwd?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The package manager to use. Defaults to `PackageManager.Npm`.
|
|
27
|
+
*/
|
|
28
|
+
packageManager?: PackageManager;
|
|
29
|
+
/**
|
|
30
|
+
* A subset of the top level dependencies which should be included. The
|
|
31
|
+
* default is `undefined` which include all dependencies, an empty array means
|
|
32
|
+
* no dependencies will be included.
|
|
33
|
+
*/
|
|
34
|
+
packagedDependencies?: string[];
|
|
35
|
+
/**
|
|
36
|
+
* The location of an alternative .vscodeignore file to be used.
|
|
37
|
+
* The `.vscodeignore` file located at the root of the project will be taken
|
|
38
|
+
* instead, if none is specified.
|
|
39
|
+
*/
|
|
40
|
+
ignoreFile?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare type IPublishVSIXOptions = IPublishOptions & Pick<IPackageOptions, 'target'>;
|
|
43
|
+
export declare type IPublishOptions = _IPublishOptions;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a VSIX from the extension in the current working directory.
|
|
46
|
+
*/
|
|
47
|
+
export declare function createVSIX(options?: IPackageOptions): Promise<any>;
|
|
48
|
+
/**
|
|
49
|
+
* Publishes the extension in the current working directory.
|
|
50
|
+
*/
|
|
51
|
+
export declare function publish(options?: IPublishOptions): Promise<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Lists the files included in the extension's package.
|
|
54
|
+
*/
|
|
55
|
+
export declare function listFiles(options?: IListFilesOptions): Promise<string[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Publishes a pre-build VSIX.
|
|
58
|
+
*/
|
|
59
|
+
export declare function publishVSIX(packagePath: string | string[], options?: IPublishVSIXOptions): Promise<any>;
|
package/out/api.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.publishVSIX = exports.listFiles = exports.publish = exports.createVSIX = exports.PackageManager = void 0;
|
|
4
|
+
const publish_1 = require("./publish");
|
|
5
|
+
const package_1 = require("./package");
|
|
6
|
+
/**
|
|
7
|
+
* The supported list of package managers.
|
|
8
|
+
*/
|
|
9
|
+
var PackageManager;
|
|
10
|
+
(function (PackageManager) {
|
|
11
|
+
PackageManager[PackageManager["Npm"] = 0] = "Npm";
|
|
12
|
+
PackageManager[PackageManager["Yarn"] = 1] = "Yarn";
|
|
13
|
+
PackageManager[PackageManager["None"] = 2] = "None";
|
|
14
|
+
})(PackageManager = exports.PackageManager || (exports.PackageManager = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Creates a VSIX from the extension in the current working directory.
|
|
17
|
+
*/
|
|
18
|
+
function createVSIX(options = {}) {
|
|
19
|
+
return (0, package_1.packageCommand)(options);
|
|
20
|
+
}
|
|
21
|
+
exports.createVSIX = createVSIX;
|
|
22
|
+
/**
|
|
23
|
+
* Publishes the extension in the current working directory.
|
|
24
|
+
*/
|
|
25
|
+
function publish(options = {}) {
|
|
26
|
+
return (0, publish_1.publish)(options);
|
|
27
|
+
}
|
|
28
|
+
exports.publish = publish;
|
|
29
|
+
/**
|
|
30
|
+
* Lists the files included in the extension's package.
|
|
31
|
+
*/
|
|
32
|
+
function listFiles(options = {}) {
|
|
33
|
+
return (0, package_1.listFiles)(options);
|
|
34
|
+
}
|
|
35
|
+
exports.listFiles = listFiles;
|
|
36
|
+
/**
|
|
37
|
+
* Publishes a pre-build VSIX.
|
|
38
|
+
*/
|
|
39
|
+
function publishVSIX(packagePath, options = {}) {
|
|
40
|
+
return (0, publish_1.publish)({
|
|
41
|
+
packagePath: typeof packagePath === 'string' ? [packagePath] : packagePath,
|
|
42
|
+
...options,
|
|
43
|
+
targets: typeof options.target === 'string' ? [options.target] : undefined,
|
|
44
|
+
...{ target: undefined },
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
exports.publishVSIX = publishVSIX;
|
|
48
|
+
//# sourceMappingURL=api.js.map
|