From beac11b6d44f7574570b286c744b5358f0ff597e Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 21 Jul 2020 15:22:36 -0700 Subject: [PATCH 1/6] Update history --- HISTORY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/HISTORY.md b/HISTORY.md index de4f1b83..ea81aa0d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,7 @@ # 3.13.6 / 2020-06-15 - test: test analytics.js from a test website +- refactor: continue the typescript migration by moving some files to .ts and adding some types # 3.13.5 / 2020-06-08 From 0bd32b9bb1f15d3ab6831a25ab0c3c0e47769769 Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 21 Jul 2020 15:32:25 -0700 Subject: [PATCH 2/6] publish declarations --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bf473c22..94524028 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,7 +55,7 @@ jobs: - checkout - attach_workspace: { at: . } - run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH - - run: yarn tsc + - run: yarn tsc --declaration - run: npm publish . workflows: From f5a998e7f1c4668ff8789d333b63a73c589c7522 Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 21 Jul 2020 15:42:17 -0700 Subject: [PATCH 3/6] install tsc before publishing to npm --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 94524028..6931af46 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,6 +55,7 @@ jobs: - checkout - attach_workspace: { at: . } - run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH + - run: yarn add -G tsc - run: yarn tsc --declaration - run: npm publish . From eda534918bc535f514ebf9601aaa7faff656fada Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 21 Jul 2020 15:50:26 -0700 Subject: [PATCH 4/6] amend tsc command --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6931af46..03de9db2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,7 +55,7 @@ jobs: - checkout - attach_workspace: { at: . } - run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH - - run: yarn add -G tsc + - run: yarn global add tsc - run: yarn tsc --declaration - run: npm publish . From b6a1eba0fe9911aa5d3260e3d306ee69f9072262 Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 21 Jul 2020 15:57:37 -0700 Subject: [PATCH 5/6] install tsc on dev packages --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 03de9db2..90db72d1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,8 +55,7 @@ jobs: - checkout - attach_workspace: { at: . } - run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH - - run: yarn global add tsc - - run: yarn tsc --declaration + - run: yarn add -D tsc && yarn run tsc --declaration - run: npm publish . workflows: From 6aa4e94743297c00c0051a52854859ea3155fefb Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 21 Jul 2020 16:04:26 -0700 Subject: [PATCH 6/6] install typescript on CI --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 90db72d1..e29a457b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,7 +55,7 @@ jobs: - checkout - attach_workspace: { at: . } - run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH - - run: yarn add -D tsc && yarn run tsc --declaration + - run: yarn add -D typescript && yarn run tsc --declaration - run: npm publish . workflows: