Skip to content

Commit

Permalink
feat: bump the base lib to 4.2.0 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin authored Jul 2, 2024
1 parent 6e22230 commit bb9f85a
Show file tree
Hide file tree
Showing 86 changed files with 11,132 additions and 9,726 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module.exports = {
tsconfigRootDir: __dirname,
},
rules: {
'@typescript-eslint/prefer-nullish-coalescing': 'off',

// Our components rely on a ton of composition
'react/jsx-no-literals': 'off',
'react/jsx-no-useless-fragment': 'off',
Expand Down
47 changes: 24 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18]
node-version: [18, 20]
fail-fast: true
steps:
- uses: actions/checkout@v3
Expand All @@ -28,25 +28,26 @@ jobs:
- uses: actions/setup-node@v3
- run: yarn install --immutable
- run: yarn run pack
docs:
name: Docs
runs-on: ubuntu-latest
strategy:
matrix:
repo-type:
- monorepo
- monorepo-1
- polyrepo
- polyrepo-deep
- polyrepo-multi
fail-fast: true
env:
NODE_ENV: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: yarn install --immutable
- run: yarn run build
- run: yarn workspace website run build
env:
DOCS_REPO_TYPE: ${{ matrix.repo-type }}
# docs:
# name: Docs
# runs-on: ubuntu-latest
# strategy:
# matrix:
# repo-type:
# - monorepo
# - monorepo-1
# - monorepo-reexports
# - polyrepo
# - polyrepo-deep
# - polyrepo-multi
# fail-fast: true
# env:
# NODE_ENV: production
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# - run: yarn install --immutable
# - run: yarn run build
# - run: yarn workspace website run build
# env:
# DOCS_REPO_TYPE: ${{ matrix.repo-type }}
12 changes: 0 additions & 12 deletions .github/workflows/pr.yml

This file was deleted.

363 changes: 0 additions & 363 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

786 changes: 0 additions & 786 deletions .yarn/releases/yarn-3.2.1.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.1.cjs

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
compressionLevel: mixed

enableGlobalCache: true

enableTelemetry: false

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.2.1.cjs
yarnPath: .yarn/releases/yarn-4.0.1.cjs
7 changes: 7 additions & 0 deletions fixtures/monorepo-1-package/reexports/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# STANDARD

```ts
function foo(num: number) {
return 123;
}
```
4 changes: 4 additions & 0 deletions fixtures/monorepo-1-package/reexports/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "reexports",
"version": "1.0.0"
}
1 change: 1 addition & 0 deletions fixtures/monorepo-1-package/reexports/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './other';
112 changes: 112 additions & 0 deletions fixtures/monorepo-1-package/reexports/src/other.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/**
* a type
* @beta
*/
export type Type = 'standard';

/**
* short description
*
* long description with a link to {@link bizz}. did it work?
* what about our own tokens: {@apilink Foo} and {@doclink intro}!
* and some inline `code`???
*
* ```
* let dontForget = 'block code';
* ```
*
* @param {String} msg description
* @param other without type
* @returns returns the param
*/
export function comments(msg: string, other: boolean) {}

/**
* newy new guy
* @param a a thing
* @param b b thing
* @alpha
*/
export function bizz(a: string, b: string): string;

/**
* newy new guy
* @param a a thing
* @param b b thing
* @param c c thing
* @beta
*/
export function bizz(a: string, b: string, c: string): string;

/**
* a thing for a thing
* @param a id
* @returns returns the param
* @beta
*/
export function bizz(...args: string[]): string {
return args[0];
}

/**
* @param {string} [a] thing
* @param {string} [b="b"] thing
* @param {string} [c="c override"] thing
*/
export function defs(a?: string, b?: string, c: string = 'c') {}

/**
* thing for a thing
* @beta
*/
export interface Foo {
/**
* very experimental
* @alpha
* @default "foo"
*/
foo: string;

/**
* very experimental
* @experimental
*/
a: string;

/**
* @default 123
*/
int?: number;
}

/**
* :::
* standard
* :::
*
* :::note
* with type
* :::
*
* ::: title
* title only
* :::
*
* :::info title
* with type
*
* and title
* :::
*
* :::success
*
* extra new lines
*
* :::
*/
export function admonitions() {}

/**
* @throws something
*/
export function errors() {}
17 changes: 17 additions & 0 deletions fixtures/monorepo-1-package/reexports/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"declarationDir": "dts",
"outDir": "dts",
"rootDir": "src",
"emitDeclarationOnly": true
},
"exclude": [
"dts",
"tests"
],
"extends": "../../../tsconfig.options.json",
"include": [
"src/**/*"
],
"references": []
}
3 changes: 3 additions & 0 deletions fixtures/monorepo-1-package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
{
"path": "other"
},
{
"path": "reexports"
},
{
"path": "standard"
}
Expand Down
3 changes: 0 additions & 3 deletions fixtures/polyrepo-standard/README.md

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions fixtures/polyrepo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# polyrepo

This is a readme!
File renamed without changes.
Loading

0 comments on commit bb9f85a

Please sign in to comment.