qcobjects-cli 2.5.157 → 2.5.158
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/.github/workflows/ci.yml +2 -2
- package/.github/workflows/npmpublish.yml +4 -4
- package/VERSION +1 -1
- package/package.json +1 -1
- package/public/cjs/cli-main.js +3 -0
- package/src/cli-main.ts +3 -0
package/.github/workflows/ci.yml
CHANGED
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
lint:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
13
|
+
- uses: actions/checkout@v6
|
|
14
14
|
# TODO: Add setup step for your language/runtime
|
|
15
15
|
# TODO: Add lint step (e.g., ruff check .)
|
|
16
16
|
- name: Lint (placeholder)
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
test:
|
|
20
20
|
runs-on: ubuntu-latest
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
23
|
# TODO: Add setup step for your language/runtime
|
|
24
24
|
# TODO: Add test step (e.g., pytest -v)
|
|
25
25
|
- name: Test (placeholder)
|
|
@@ -9,11 +9,11 @@ jobs:
|
|
|
9
9
|
build:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
|
-
- uses: actions/checkout@
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
13
|
with:
|
|
14
14
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
15
15
|
ref: ${{ github.ref }}
|
|
16
|
-
- uses: actions/setup-node@
|
|
16
|
+
- uses: actions/setup-node@v6
|
|
17
17
|
with:
|
|
18
18
|
node-version: 22
|
|
19
19
|
- run: npm i --legacy-peer-deps
|
|
@@ -26,11 +26,11 @@ jobs:
|
|
|
26
26
|
contents: read
|
|
27
27
|
id-token: write
|
|
28
28
|
steps:
|
|
29
|
-
- uses: actions/checkout@
|
|
29
|
+
- uses: actions/checkout@v6
|
|
30
30
|
with:
|
|
31
31
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
32
32
|
ref: ${{ github.ref }}
|
|
33
|
-
- uses: actions/setup-node@
|
|
33
|
+
- uses: actions/setup-node@v6
|
|
34
34
|
with:
|
|
35
35
|
node-version: 22
|
|
36
36
|
- name: Upgrade npm for OIDC support (requires >=11.5.1)
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.158
|
package/package.json
CHANGED
package/public/cjs/cli-main.js
CHANGED
|
@@ -175,6 +175,9 @@ class SwitchCommander extends qcobjects_1.InheritClass {
|
|
|
175
175
|
"User-Agent": "qcobjects-cli"
|
|
176
176
|
};
|
|
177
177
|
githubService.done = () => { };
|
|
178
|
+
githubService.fail = () => {
|
|
179
|
+
qcobjects_1.logger.debug("Could not fetch .gitignore from GitHub, skipping.");
|
|
180
|
+
};
|
|
178
181
|
(0, qcobjects_1.serviceLoader)(githubService)
|
|
179
182
|
.then(({ service }) => {
|
|
180
183
|
node_fs_1.default.writeFileSync(node_path_1.default.resolve(qcobjects_1.CONFIG.get("projectPath"), "./.gitignore"), service.template);
|
package/src/cli-main.ts
CHANGED
|
@@ -156,6 +156,9 @@ export class SwitchCommander extends InheritClass {
|
|
|
156
156
|
"User-Agent": "qcobjects-cli"
|
|
157
157
|
};
|
|
158
158
|
githubService.done = () => { };
|
|
159
|
+
githubService.fail = () => {
|
|
160
|
+
logger.debug("Could not fetch .gitignore from GitHub, skipping.");
|
|
161
|
+
};
|
|
159
162
|
serviceLoader(githubService)
|
|
160
163
|
.then(({ service }: { service: any }) => {
|
|
161
164
|
fs.writeFileSync(path.resolve(CONFIG.get("projectPath"), "./.gitignore"), service.template);
|