Skip to content

Commit

Permalink
ci(publish-x): import cjs modules as dynamic imports (#175)
Browse files Browse the repository at this point in the history
* ci: import cjs modules as dynamic imports

* chore: squash
  • Loading branch information
kieranroneill authored Feb 16, 2024
1 parent 9308c35 commit 3b0ea28
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/publish-to-chrome-web-store/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { info, setFailed } from '@actions/core';
import styles from 'ansi-styles';
import { Stats } from 'node:fs';
import { stat } from 'node:fs/promises';
import { resolve } from 'node:path';
Expand All @@ -19,6 +18,7 @@ import {
} from './utils';

(async () => {
const styles = (await import('ansi-styles')).default;
const infoPrefix: string = `${styles.yellow.open}[INFO]${styles.yellow.close}`;
let accessToken: string;
let zipPath: string;
Expand Down
5 changes: 3 additions & 2 deletions .github/actions/publish-to-chrome-web-store/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"alwaysStrict": true,
Expand All @@ -10,8 +11,8 @@
"incremental": true,
"isolatedModules": true,
"lib": ["ESNext"],
"module": "CommonJS",
"moduleResolution": "Node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/publish-to-firefox-add-ons/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { info, setFailed } from '@actions/core';
import styles from 'ansi-styles';
import { Stats } from 'node:fs';
import { stat } from 'node:fs/promises';
import { resolve } from 'node:path';
Expand All @@ -14,6 +13,7 @@ import { ActionError } from './errors';
import { createJwt, handleError, publish, uploadZipFile } from './utils';

(async () => {
const styles = (await import('ansi-styles')).default;
const infoPrefix: string = `${styles.yellow.open}[INFO]${styles.yellow.close}`;
let jwt: string;
let uploadUuid: string;
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/publish-to-firefox-add-ons/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"incremental": true,
"isolatedModules": true,
"lib": ["ESNext"],
"module": "CommonJS",
"moduleResolution": "Node",
"module": "Node16",
"moduleResolution": "Node16",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/publish-to-microsoft-edge-add-ons/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { info, setFailed } from '@actions/core';
import styles from 'ansi-styles';
import { Stats } from 'node:fs';
import { stat } from 'node:fs/promises';
import { resolve } from 'node:path';
Expand All @@ -19,6 +18,7 @@ import {
} from './utils';

(async () => {
const styles = (await import('ansi-styles')).default;
const infoPrefix: string = `${styles.yellow.open}[INFO]${styles.yellow.close}`;
let accessToken: string;
let operationId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"incremental": true,
"isolatedModules": true,
"lib": ["ESNext"],
"module": "CommonJS",
"moduleResolution": "Node",
"module": "Node16",
"moduleResolution": "Node16",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand Down

0 comments on commit 3b0ea28

Please sign in to comment.