Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ FEATURE: Publishing script for compatibility with Bun #28

Merged
merged 6 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .eslintignore

This file was deleted.

37 changes: 0 additions & 37 deletions .eslintrc.json

This file was deleted.

7 changes: 7 additions & 0 deletions apps/interunit-dot-dev/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const config = require('@interunit/eslint')

/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
...config
}
3 changes: 0 additions & 3 deletions apps/interunit-dot-dev/.eslintrc.json

This file was deleted.

31 changes: 31 additions & 0 deletions apps/interunit-dot-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# interunit-dot-dev

## 0.1.5

### Patch Changes

- Updated dependencies
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]

## 0.1.4

### Patch Changes

- Updated dependencies
- @interunit/[email protected]

## 0.1.3

### Patch Changes

- Updated dependencies
- @interunit/[email protected]

## 0.1.2

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion apps/interunit-dot-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interunit-dot-dev",
"version": "0.1.2",
"version": "0.1.5",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -17,6 +17,7 @@
"@interunit/combobox": "workspace:*",
"@interunit/config": "workspace:*",
"@interunit/form": "workspace:*",
"@interunit/eslint": "workspace:*",
"@interunit/modal": "workspace:*",
"@interunit/popover": "workspace:*",
"@interunit/primitives": "workspace:*",
Expand Down
14 changes: 14 additions & 0 deletions apps/interunit-example-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# interunit-example-app

## 1.0.2

### Patch Changes

- Updated dependencies
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/interunit-example-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interunit-example-app",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",
"scripts": {
"dev:all": "expo start --dev-client",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev:docs": "turbo run dev:docs",
"watch:package": "turbo run watch:package --concurrency 50",
"build:package": "turbo run build:package",
"publish:package": "turbo run publish:package --",
"lint": "turbo lint --continue -- --cache --cache-location 'node_modules/.cache/.eslintcache'",
"lint:fix": "turbo lint:fix --continue -- --cache --cache-location 'node_modules/.cache/.eslintcache'",
"format": "turbo run format --continue -- --cache --cache-location='node_modules/.cache/.prettiercache'",
Expand All @@ -20,13 +21,17 @@
"util:delete-dist": "rm -rf packages/**/dist",
"changeset:add": "changeset add",
"changeset:version": "changeset version",
"changeset:publish": "bun run util:delete-dist && bun run build:package && yarn && yarn workspaces foreach --exclude apps/interunit-dot-dev --exclude apps/interunit-example-app npm publish --tolerate-republish --access public && rm -rf yarn.lock",
"changeset:publish": "bun run util:delete-dist && bun install && bun build:package && bun run scripts/publish/index.js" ,
"postinstall": "husky install",
"husky": "postinstall"
},
"prettier": "@interunit/prettier",
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"packages/**/*.{js,jsx,ts,tsx}": [
"bun run lint:fix",
"bun run format:fix"
],
"apps/**/*.{js,jsx,ts,tsx}": [
"bun run lint:fix",
"bun run format:fix"
]
Expand All @@ -50,7 +55,8 @@
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"turbo": "^1.10.14",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"yargs-parser": "^21.1.1"
},
"workspaces": [
"packages/*",
Expand Down
7 changes: 7 additions & 0 deletions packages/a11y/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const config = require('@interunit/eslint')

/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
...config
}
6 changes: 0 additions & 6 deletions packages/a11y/.eslintrc.mjs

This file was deleted.

9 changes: 9 additions & 0 deletions packages/a11y/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @interunit/a11y

## 0.0.16

### Patch Changes

- Updates for eslint tooling
- Updated dependencies
- @interunit/[email protected]
- @interunit/[email protected]

## 0.0.15

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/a11y/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interunit/a11y",
"version": "0.0.15",
"version": "0.0.16",
"description": "A11y utilities to use in InterUnit",
"homepage": "https://github.com/interunit/ui#readme",
"bugs": {
Expand All @@ -20,8 +20,8 @@
"build:package": "tsup src/index.ts --dts --minify --format cjs,esm --clean --sourcemap",
"format": "prettier ./src/**/* --check",
"format:fix": "prettier ./src/**/* --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint": "eslint . --config ./.eslintrc.js",
"lint:fix": "eslint . --fix --config ./.eslintrc.js",
"test:unit": "jest --config ./jest.config.mjs --coverage",
"watch:package": "tsup src/index.ts --dts --format cjs,esm --watch"
},
Expand All @@ -43,4 +43,4 @@
"peerDependencies": {
"react": "^18.2.0"
}
}
}
3 changes: 0 additions & 3 deletions packages/api-extractor/.eslintrc.json

This file was deleted.

7 changes: 7 additions & 0 deletions packages/api-extractor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @interunit/api-extractor

## 0.0.2

### Patch Changes

- Updates for eslint tooling
4 changes: 2 additions & 2 deletions packages/api-extractor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interunit/api-extractor",
"version": "0.0.1",
"version": "0.0.2",
"description": "The API Extractor config for InterUnit",
"react-native": "src/index.ts",
"repository": {
Expand All @@ -13,4 +13,4 @@
"url": "https://github.com/interunit/ui/issues"
},
"homepage": "https://github.com/interunit/ui#readme"
}
}
3 changes: 0 additions & 3 deletions packages/babel/.eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions packages/babel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @interunit/babel

## 0.0.3

### Patch Changes

- Updates for eslint tooling

## 0.0.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/babel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interunit/babel",
"version": "0.0.2",
"version": "0.0.3",
"description": "The babel config for use with react native in InterUnit",
"devDependencies": {
"@babel/preset-env": "^7.22.10",
Expand All @@ -17,4 +17,4 @@
"url": "https://github.com/interunit/ui/issues"
},
"homepage": "https://github.com/interunit/ui#readme"
}
}
7 changes: 7 additions & 0 deletions packages/collapsible/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const config = require('@interunit/eslint')

/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
...config
}
6 changes: 0 additions & 6 deletions packages/collapsible/.eslintrc.mjs

This file was deleted.

28 changes: 28 additions & 0 deletions packages/collapsible/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @interunit/collapsible

## 0.0.14

### Patch Changes

- Updates for eslint tooling
- Updated dependencies
- @interunit/[email protected]
- @interunit/[email protected]
- @interunit/[email protected]

## 0.0.13

### Patch Changes

- Version bump for publishing fixes

## 0.0.12

### Patch Changes

- Add npm ignore to fix build

## 0.0.11

### Patch Changes

- Last publish didn't build correctly

## 0.0.10

### Patch Changes
Expand Down
11 changes: 6 additions & 5 deletions packages/collapsible/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interunit/collapsible",
"version": "0.0.10",
"version": "0.0.14",
"description": "A component that expands and collapses content",
"homepage": "https://github.com/interunit/ui#readme",
"bugs": {
Expand All @@ -20,10 +20,11 @@
"build:package": "tsup src/index.ts --dts --minify --format cjs,esm --clean --sourcemap",
"format": "prettier ./src/**/* --check",
"format:fix": "prettier ./src/**/* --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint": "eslint . --config ./.eslintrc.js",
"lint:fix": "eslint . --fix --config ./.eslintrc.js",
"test:unit": "jest --config ./jest.config.mjs --coverage",
"watch:package": "tsup src/index.ts --dts --format cjs,esm --watch"
"watch:package": "tsup src/index.ts --dts --format cjs,esm --watch",
"publish:package": "pnpm publish --access public"
},
"prettier": "@interunit/prettier",
"dependencies": {
Expand All @@ -45,4 +46,4 @@
"peerDependencies": {
"react": "^18.2.0"
}
}
}
7 changes: 7 additions & 0 deletions packages/combobox/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const config = require('@interunit/eslint')

/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
...config
}
6 changes: 0 additions & 6 deletions packages/combobox/.eslintrc.mjs

This file was deleted.

Loading