From c682c5eb5189bd90ac3b05305056aeb91fe69176 Mon Sep 17 00:00:00 2001 From: Aaron S <94858815+stocaaro@users.noreply.github.com> Date: Mon, 1 May 2023 14:31:32 -0500 Subject: [PATCH] =?UTF-8?q?feat(core):=20Use=20lerna=20prepublishOnly=20ve?= =?UTF-8?q?rsion=20npm=20publish=20and=20use=20the=20=E2=80=A6=20(#11301)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 8 +------- .gitignore | 3 +++ packages/core/package.json | 3 ++- packages/core/src/Platform/version.ts | 2 -- 4 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 packages/core/src/Platform/version.ts diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e2a94d5944..d9e302b20cc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1592,17 +1592,11 @@ jobs: - amplify-ssh-deps-{{ .Branch }} - amplify-ssh-deps - run: - name: 'Update library version' + name: 'Update API documentation' command: | git config --global user.email $GITHUB_EMAIL git config --global user.name $GITHUB_USER git pull origin release - yarn workspace @aws-amplify/core build - git add ./packages/core/src/Platform/version.ts - git commit -m "chore(release): update version.ts [ci skip]" - - run: - name: 'Update API documentation' - command: | yarn run docs git add ./docs/api/ git commit -m "chore(release): update API docs [ci skip]" diff --git a/.gitignore b/.gitignore index ebf4d950ae4..ea82d0b8e71 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ package-lock.json packages/*/.watchmanconfig dual-publish-tmp +### Version file - core build artifact +packages/core/src/Platform/version.ts + ### Gradle ### .gradle/ local.properties diff --git a/packages/core/package.json b/packages/core/package.json index 1e0c0567bec..63dd9515b5d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -23,11 +23,12 @@ "build:cjs:watch": "node ./build es5 --watch", "build:esm:watch": "rimraf lib-esm && node ./build es6 --watch", "build": "npm run clean && npm run generate-version && npm run build:esm && npm run build:cjs", - "generate-version": "genversion src/Platform/version.ts --es6 --semi", + "generate-version": "genversion src/Platform/version.ts --es6 --semi --source ../aws-amplify", "clean": "npm run clean:size && rimraf lib-esm lib dist", "clean:size": "rimraf dual-publish-tmp tmp*", "format": "echo \"Not implemented\"", "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", + "prepublishOnly": "npm run build", "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 76.41" }, "react-native": { diff --git a/packages/core/src/Platform/version.ts b/packages/core/src/Platform/version.ts deleted file mode 100644 index 1fff5321795..00000000000 --- a/packages/core/src/Platform/version.ts +++ /dev/null @@ -1,2 +0,0 @@ -// generated by genversion -export const version = '5.1.13';