Skip to content

Commit

Permalink
fix(scripts): esm release
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jul 18, 2023
1 parent c44c795 commit 925f2fe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"docker:clean": "docker stop api-clients-automation; docker rm -f api-clients-automation; docker image rm -f api-clients-automation",
"docker:exec": "docker exec -it api-clients-automation bash -lc \"$*\"",
"docker:mount": "./scripts/docker/mount.sh",
"docker:release": "docker exec -e GITHUB_TOKEN=$GITHUB_TOKEN -it api-clients-automation bash -lc \"yarn release\"",
"docker:release": "docker exec --env-file=.env -it api-clients-automation bash -lc \"yarn release\"",
"docker:setup": "yarn docker:clean && yarn docker:build && yarn docker:mount",
"fix:json": "eslint --ext=json . --fix",
"github-actions:lint": "eslint --ext=yml .github/",
Expand Down
16 changes: 8 additions & 8 deletions scripts/release/createReleasePR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import chalk from 'chalk';
import dotenv from 'dotenv';
import semver from 'semver';

import generationCommitText from '../ci/codegen/text';
import { getNbGitDiff } from '../ci/utils';
import generationCommitText from '../ci/codegen/text.js';
import { getNbGitDiff } from '../ci/utils.js';
import {
LANGUAGES,
ROOT_ENV_PATH,
Expand All @@ -19,20 +19,20 @@ import {
gitBranchExists,
setVerbose,
configureGitHubAuthor,
} from '../common';
import { getPackageVersionDefault } from '../config';
} from '../common.js';
import { getPackageVersionDefault } from '../config.js';

import { RELEASED_TAG } from './common';
import TEXT from './text';
import { RELEASED_TAG } from './common.js';
import TEXT from './text.js';
import type {
Versions,
VersionsBeforeBump,
PassedCommit,
Commit,
Scope,
Changelog,
} from './types';
import { updateAPIVersions, updateDartPackages } from './updateAPIVersions';
} from './types.js';
import { updateAPIVersions, updateDartPackages } from './updateAPIVersions.js';

dotenv.config({ path: ROOT_ENV_PATH });

Expand Down
2 changes: 1 addition & 1 deletion scripts/release/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ReleaseType } from 'semver';

import type { Language } from '../types';
import type { Language } from '../types.js';

export type Version = {
current: string;
Expand Down
10 changes: 5 additions & 5 deletions scripts/release/updateAPIVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ import {
LANGUAGES,
CI,
setVerbose,
} from '../common';
} from '../common.js';
import {
getClientsConfigField,
getGitHubUrl,
getLanguageFolder,
} from '../config';
import type { Language } from '../types';
} from '../config.js';
import type { Language } from '../types.js';

import { RELEASED_TAG, writeJsonFile } from './common';
import type { Changelog, Versions, VersionsToRelease } from './types';
import { RELEASED_TAG, writeJsonFile } from './common.js';
import type { Changelog, Versions, VersionsToRelease } from './types.js';

dotenv.config({ path: ROOT_ENV_PATH });

Expand Down

0 comments on commit 925f2fe

Please sign in to comment.