Skip to content

Commit a176e1e

Browse files
authored
chore: update package.json files and lerna config (#50)
1 parent adcb82b commit a176e1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+322
-6790
lines changed

.github/workflows/jira-issue-create.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-latest
1111
environment: Jira
1212
name: SDK Bot Jira Issue Creation
1313
steps:

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
lint:
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out Git repository
1414
uses: actions/checkout@v2

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
authorize:
1313
name: Authorize
14-
runs-on: ubuntu-18.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- name: ${{ github.actor }} permission check to do a release
1717
uses: octokit/[email protected]
@@ -23,7 +23,7 @@ jobs:
2323

2424
release:
2525
name: Release
26-
runs-on: ubuntu-18.04
26+
runs-on: ubuntu-latest
2727
needs: [authorize]
2828
steps:
2929
- name: Checkout

.github/workflows/semantic-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
pr-title-check:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- name: PR title is valid
1212
if: >

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
node-version: ['10', '12', '14']
15-
os: [macos-latest, ubuntu-18.04]
14+
node-version: ['16', '18']
15+
os: [macos-latest, ubuntu-latest]
1616
runs-on: ${{ matrix.os }}
1717

1818
steps:

lerna.json

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
{
2-
"version": "1.5.7",
3-
"packages": "packages/*",
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "independent",
46
"npmClient": "yarn",
5-
"useWorkspaces": true
7+
"useWorkspaces": true,
8+
"command": {
9+
"version": {
10+
"allowBranch": "main",
11+
"conventionalCommits": true,
12+
"createRelease": "github",
13+
"message": "chore(release): publish",
14+
"preid": "beta"
15+
}
16+
}
617
}

package.json

+5-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
11
{
2-
"name": "@amplitude/experiment-js-client-root",
3-
"version": "0.1.1",
4-
"description": "Javascript Client SDK for Amplitude Experiment",
5-
"scripts": {
6-
"build": "yarn workspace @amplitude/analytics-connector build && yarn workspace @amplitude/experiment-js-client build",
7-
"lint": "lerna run lint",
8-
"test": "jest",
9-
"start": "yarn workspace browser-demo start"
10-
},
11-
"repository": {
12-
"type": "git",
13-
"url": "git+https://github.com/amplitude/experiment-js-client.git"
14-
},
15-
"author": "Amplitude",
16-
"license": "MIT",
172
"private": true,
183
"workspaces": [
194
"packages/*"
205
],
21-
"bugs": {
22-
"url": "https://github.com/amplitude/experiment-js-client/issues"
6+
"scripts": {
7+
"build": "lerna run build --stream",
8+
"clean": "lerna run clean --stream && rimraf node_modules",
9+
"lint": "lerna run lint --stream",
10+
"test": "lerna run test --stream"
2311
},
24-
"homepage": "https://github.com/amplitude/experiment-js-client#readme",
2512
"devDependencies": {
2613
"@babel/core": "^7.11.1",
2714
"@babel/preset-env": "^7.11.0",
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
22
"name": "@amplitude/analytics-connector",
3-
"version": "1.5.7",
3+
"version": "1.4.5",
44
"description": "Connector package for Amplitude SDKs",
5-
"main": "dist/analyticsConnector.umd.js",
6-
"module": "dist/analyticsConnector.esm.js",
7-
"es2015": "dist/analyticsConnector.es2015.js",
5+
"author": "Amplitude",
6+
"homepage": "https://github.com/amplitude/experiment-js-client",
7+
"license": "MIT",
8+
"main": "dist/analytics-connector.umd.js",
9+
"module": "dist/analytics-connector.esm.js",
10+
"es2015": "dist/analytics-connector.es2015.js",
811
"types": "dist/types/src/index.d.ts",
9-
"files": [
10-
"dist"
11-
],
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/amplitude/experiment-js-client.git",
18+
"directory": "packages/analytics-connector"
19+
},
1220
"scripts": {
1321
"build": "rm -rf dist && rollup -c",
14-
"docs": "typedoc",
22+
"clean": "rimraf node_modules dist",
1523
"lint": "eslint . --ignore-path ../../.eslintignore && prettier -c . --ignore-path ../../.prettierignore",
1624
"test": "jest",
17-
"version": "yarn docs && git add ../../docs",
1825
"prepublish": "yarn build"
1926
},
20-
"repository": {
21-
"type": "git",
22-
"url": "https://github.com/amplitude/experiment-js-client.git",
23-
"directory": "packages/analyticsConnector"
24-
},
25-
"author": "Amplitude",
26-
"license": "MIT",
27-
"private": true,
2827
"bugs": {
2928
"url": "https://github.com/amplitude/experiment-js-client/issues"
3029
},
31-
"homepage": "https://github.com/amplitude/experiment-js-client#readme",
3230
"dependencies": {
3331
"@amplitude/ua-parser-js": "0.7.31"
3432
},
3533
"devDependencies": {
3634
"@types/amplitude-js": "^8.0.2",
3735
"amplitude-js": "^8.12.0"
3836
},
39-
"gitHead": "0a910f04a64dafcf37b68be45ed7dca58fdd6acf"
37+
"files": [
38+
"dist"
39+
]
4040
}

packages/analyticsConnector/rollup.config.js packages/analytics-connector/rollup.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const configs = [
5757
{
5858
...getCommonBrowserConfig('es5'),
5959
...getOutputConfig({
60-
entryFileNames: 'analyticsConnector.umd.js',
60+
entryFileNames: 'analytics-connector.umd.js',
6161
exports: 'named',
6262
format: 'umd',
6363
}),
@@ -68,7 +68,7 @@ const configs = [
6868
{
6969
...getCommonBrowserConfig('es5'),
7070
...getOutputConfig({
71-
entryFileNames: 'analyticsConnector.esm.js',
71+
entryFileNames: 'analytics-connector.esm.js',
7272
format: 'esm',
7373
}),
7474
external: ['@amplitude/ua-parser-js'],
@@ -78,7 +78,7 @@ const configs = [
7878
{
7979
...getCommonBrowserConfig('es2015'),
8080
...getOutputConfig({
81-
entryFileNames: 'analyticsConnector.es2015.js',
81+
entryFileNames: 'analytics-connector.es2015.js',
8282
format: 'esm',
8383
}),
8484
external: ['@amplitude/ua-parser-js'],
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
11
{
22
"name": "@amplitude/experiment-js-client",
33
"version": "1.5.6",
4-
"description": "Javascript Client SDK for Amplitude Experiment",
4+
"description": "Amplitude Experiment Javascript Client SDK",
5+
"keywords": [
6+
"experiment",
7+
"amplitude"
8+
],
9+
"author": "Amplitude",
10+
"homepage": "https://github.com/amplitude/experiment-js-client",
11+
"license": "MIT",
512
"main": "dist/experiment.umd.js",
613
"module": "dist/experiment.esm.js",
714
"es2015": "dist/experiment.es2015.js",
815
"types": "dist/types/src/index.d.ts",
9-
"files": [
10-
"dist"
11-
],
16+
"publishConfig": {
17+
"access": "public"
18+
},
19+
"repository": {
20+
"type": "git",
21+
"url": "https://github.com/amplitude/experiment-js-client.git",
22+
"directory": "packages/experiment-browser"
23+
},
1224
"scripts": {
1325
"build": "rm -rf dist && rollup -c",
26+
"clean": "rimraf node_modules dist",
1427
"docs": "typedoc",
1528
"lint": "eslint . --ignore-path ../../.eslintignore && prettier -c . --ignore-path ../../.prettierignore",
1629
"test": "jest",
1730
"version": "yarn docs && git add ../../docs",
1831
"prepublish": "yarn build"
1932
},
20-
"repository": {
21-
"type": "git",
22-
"url": "https://github.com/amplitude/experiment-js-client.git",
23-
"directory": "packages/browser"
24-
},
25-
"author": "Amplitude",
26-
"license": "MIT",
2733
"bugs": {
2834
"url": "https://github.com/amplitude/experiment-js-client/issues"
2935
},
30-
"homepage": "https://github.com/amplitude/experiment-js-client#readme",
3136
"dependencies": {
3237
"@amplitude/analytics-connector": "1.4.5",
3338
"base64-js": "1.5.1",
@@ -37,5 +42,7 @@
3742
"@types/amplitude-js": "^8.0.2",
3843
"amplitude-js": "^8.12.0"
3944
},
40-
"gitHead": "0a910f04a64dafcf37b68be45ed7dca58fdd6acf"
45+
"files": [
46+
"dist"
47+
]
4148
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)