* reference new version of beachball

* switch beachball to use a config and add prepublish hook

* publish with correct main/module references

* Change files

* remove unnecessary beachball reference in project

* move beachball to version with prepublish hook

* remove private registry reference from lockfile
This commit is contained in:
Jason Morse 2020-04-16 16:23:44 -07:00 коммит произвёл GitHub
Родитель 380a0c3e69
Коммит 6709e9eed6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
56 изменённых файлов: 328 добавлений и 61 удалений

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

15
beachball.config.js Normal file
Просмотреть файл

@ -0,0 +1,15 @@
module.exports = {
disallowedChangeTypes: ['major'],
hooks: {
prepublish: bumpInfo => {
// iterate through the packages that are being published as part of the bump info
for (const pkg in bumpInfo.packageInfos) {
const packageJson = bumpInfo.packageInfos[pkg];
if (packageJson && packageJson.onPublish && typeof packageJson.onPublish === 'object') {
Object.assign(packageJson, packageJson.onPublish);
delete packageJson.onPublish;
}
}
}
}
};

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui/react-native",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:36.005Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/adapters",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:37.018Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/button",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:13.364Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/callout",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:15.290Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/checkbox",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:16.463Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/focus-trap-zone",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:17.592Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/interactive-hooks",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:38.002Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/link",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:18.719Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/persona",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:19.817Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/persona-coin",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:20.792Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/pressable",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:21.834Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/radio-group",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:22.851Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/separator",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:23.900Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/text",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:24.901Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@fluentui-react-native/tokens",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:38.960Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/foundation-composable",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:25.929Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/foundation-compose",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:26.910Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/foundation-settings",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:27.921Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/foundation-tokens",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:28.902Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/immutable-merge",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:29.925Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/theme-registry",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:30.908Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/themed-settings",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:31.948Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/themed-stylesheet",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:32.935Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/theming-ramp",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:33.984Z"
}

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "publish with correct main/module references",
"packageName": "@uifabricshared/theming-react-native",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-16T03:03:35.000Z"
}

Просмотреть файл

@ -36,7 +36,7 @@
"@types/react": "16.8.23",
"@types/react-dom": "16.8.5",
"@types/react-native": "^0.60.0",
"beachball": "^1.11.7",
"beachball": "^1.29.1",
"lerna": "^3.16.4",
"react": "16.8.6",
"react-dom": "16.8.6",
@ -53,10 +53,5 @@
"nohoist": [
"**/expo"
]
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "just-scripts build",
"just": "just-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "just-scripts build",
"just": "just-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"private": true,
"scripts": {
"build": "fluentui-scripts build",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -9,6 +9,10 @@
"module": "src/index.ts",
"main": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -34,10 +38,5 @@
"react": "16.8.6",
"@uifabricshared/build-native": "^0.1.1",
"@uifabricshared/eslint-config-rules": "^0.1.1"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -35,10 +39,5 @@
"devDependencies": {
"@types/jest": "^19.2.2",
"@uifabricshared/eslint-config-rules": "^0.1.1"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -32,10 +36,5 @@
"@types/jest": "^19.2.2",
"@uifabricshared/build-native": "^0.1.1",
"@uifabricshared/eslint-config-rules": "^0.1.1"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -32,10 +36,5 @@
"@types/jest": "^19.2.2",
"@uifabricshared/foundation-settings": "0.4.12",
"@uifabricshared/build-native": "^0.1.1"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -30,10 +34,5 @@
"@types/node": "^10.3.5",
"@uifabricshared/build-native": "^0.1.1",
"@uifabricshared/eslint-config-rules": "^0.1.1"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -32,10 +36,5 @@
"@types/jest": "^19.2.2",
"@uifabricshared/build-native": "^0.1.1",
"@uifabricshared/eslint-config-rules": "^0.1.1"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -33,10 +37,5 @@
"@types/node": "^10.3.5",
"@uifabricshared/build-native": "^0.1.1",
"@uifabricshared/eslint-config-rules": "^0.1.1"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -31,10 +35,5 @@
},
"peerDependencies": {
"react-native": "^0.59.0"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -9,6 +9,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -38,10 +42,5 @@
},
"peerDependencies": {
"react": "^16.8.6"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"bundle": "fluentui-scripts bundle",
@ -36,10 +40,5 @@
},
"peerDependencies": {
"react": "^16.8.6"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
}
}

Просмотреть файл

@ -4,6 +4,10 @@
"description": "A react-native companion to fabric web that only depends on stock controls and theming",
"main": "src/index.ts",
"module": "src/index.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"typings": "lib/index.d.ts",
"scripts": {
"build": "fluentui-scripts build",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -5,6 +5,10 @@
"main": "src/index.ts",
"module": "src/index.ts",
"typings": "lib/index.d.ts",
"onPublish": {
"main": "lib-commonjs/index.js",
"module": "lib/index.js"
},
"scripts": {
"build": "fluentui-scripts build",
"just": "fluentui-scripts",

Просмотреть файл

@ -56,7 +56,6 @@
"babel-jest": "^25.2.3",
"babel-plugin-module-resolver": "^4.0.0",
"babylon": "^7.0.0-beta.47",
"beachball": "^1.11.7",
"bundlesize": "^0.15.2",
"chalk": "^2.1.0",
"codecov": "^3.1.0",

Просмотреть файл

@ -7592,10 +7592,10 @@ bcrypt-pbkdf@^1.0.0:
dependencies:
tweetnacl "^0.14.3"
beachball@^1.11.7:
version "1.25.0"
resolved "https://registry.yarnpkg.com/beachball/-/beachball-1.25.0.tgz#bb7b6476fd844412f255322385d9c5d5e8a8835c"
integrity sha512-Liwbk3le5o2cGA3HNviRN9BacR5kSmurLrVHX1P6LHKypV534IAA5mWn+K8iYpsVaosX0PUz1cfQAsj2TEIWIg==
beachball@^1.29.1:
version "1.29.1"
resolved "https://registry.npmjs.org/beachball/-/beachball-1.29.1.tgz#6893ccf7118f9652cfdf9a46b30b4c0a1a212ad0"
integrity sha512-xoRLCm1P1s6SdqXQah17WMtUf6B2AjTEU1hfqX2QODK+UhSloikM4Weu9aeJcdFxvryH8PlGTc60dll1rme23g==
dependencies:
cosmiconfig "^6.0.0"
fs-extra "^8.0.1"