Skip to content

Commit 17ea080

Browse files
committed
workflow for all
1 parent f761b38 commit 17ea080

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.github/workflows/repo-sync.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ jobs:
150150
# ts-prune | awk '{print $1}' | xargs rm -f
151151
152152
rsync -av --delete ${{ env.RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/
153-
# rsync -av --delete ../cli/ ./cli/
154153
rsync -av --delete ../ui/ ./ui/
155154
rsync -av --delete ${{ env.RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES }} ../upload-api/src/ ./upload-api/src/
156155
rsync -av --delete ../upload-api/migration-sitecore/ ./upload-api/migration-sitecore/
@@ -244,6 +243,7 @@ jobs:
244243
cat <<EOL > eslint.config.cjs
245244
const js = require("@eslint/js");
246245
const globals = require("globals");
246+
const tsPlugin = require("@typescript-eslint/eslint-plugin");
247247
const importPlugin = require("eslint-plugin-import");
248248
module.exports = [
249249
js.configs.recommended,
@@ -252,15 +252,21 @@ jobs:
252252
ecmaVersion: "latest",
253253
sourceType: "module",
254254
globals: globals.node,
255+
parser: require("@typescript-eslint/parser"),
256+
},
257+
plugins: {
258+
"@typescript-eslint": tsPlugin,
259+
import: importPlugin,
255260
},
256261
rules: {
257262
"no-unused-vars": "warn",
258263
"no-console": "off",
259-
"@typescript-eslint/no-var-requires": 'off',
260264
"@typescript-eslint/no-var-requires": "off",
261265
"no-prototype-builtins": "off",
262266
"@typescript-eslint/no-explicit-any": "off",
263-
"no-constant-condition": "off"
267+
"no-constant-condition": "off",
268+
"no-constant-binary-expression": "off",
269+
"import/no-unresolved": 'off',
264270
}
265271
}
266272
];
@@ -282,7 +288,6 @@ jobs:
282288
ts-prune | awk '{print $1}' | xargs rm -f
283289
284290
rsync -av --delete ${{ env.RSYNC_CONTENTFUL_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/
285-
# rsync -av --delete ../cli/ ./cli/
286291
rsync -av --delete ../ui/ ./ui/
287292
rsync -av --delete ${{ env.RSYNC_CONTENTFUL_UPLOAD_API_SRC_EXCLUDES }} ../upload-api/src/ ./upload-api/src/
288293
rsync -av --delete ../upload-api/migration-contentful/ ./upload-api/migration-contentful/
@@ -343,6 +348,7 @@ jobs:
343348
cat <<EOL > eslint.config.cjs
344349
const js = require("@eslint/js");
345350
const globals = require("globals");
351+
const tsPlugin = require("@typescript-eslint/eslint-plugin");
346352
const importPlugin = require("eslint-plugin-import");
347353
module.exports = [
348354
js.configs.recommended,
@@ -351,15 +357,21 @@ jobs:
351357
ecmaVersion: "latest",
352358
sourceType: "module",
353359
globals: globals.node,
360+
parser: require("@typescript-eslint/parser"),
361+
},
362+
plugins: {
363+
"@typescript-eslint": tsPlugin,
364+
import: importPlugin,
354365
},
355366
rules: {
356367
"no-unused-vars": "warn",
357368
"no-console": "off",
358-
"@typescript-eslint/no-var-requires": 'off',
359369
"@typescript-eslint/no-var-requires": "off",
360370
"no-prototype-builtins": "off",
361371
"@typescript-eslint/no-explicit-any": "off",
362-
"no-constant-condition": "off"
372+
"no-constant-condition": "off",
373+
"no-constant-binary-expression": "off",
374+
"import/no-unresolved": 'off',
363375
}
364376
}
365377
];
@@ -381,7 +393,6 @@ jobs:
381393
ts-prune | awk '{print $1}' | xargs rm -f
382394
383395
rsync -av --delete ${{ env.RSYNC_WORDPRESS_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/
384-
# rsync -av --delete ../cli/ ./cli/
385396
rsync -av --delete ../ui/ ./ui/
386397
rsync -av --delete ${{ env.RSYNC_WORDPRESS_UPLOAD_API_SRC_EXCLUDES }} ../upload-api/src/ ./upload-api/src/
387398
rsync -av --delete ../upload-api/migration-wordpress/ ./upload-api/migration-wordpress/

api/src/services/contentful.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import customLogger from "../utils/custom-logger.utils.js";
1818

1919

2020

21+
2122
const {
2223
DATA,
2324
// DIR

api/src/services/wordpress.service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import { getLogMessage } from "../utils/index.js";
1010
import { v4 as uuidv4 } from "uuid";
1111
import { orgService } from "./org.service.js";
1212

13+
14+
15+
16+
17+
1318
const { JSDOM } = jsdom;
1419
const virtualConsole = new jsdom.VirtualConsole();
1520
// Get the current file's path

0 commit comments

Comments
 (0)