Skip to content

Commit

Permalink
chore: add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Aug 2, 2024
1 parent e95f9cb commit d8e3fa9
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
7 changes: 7 additions & 0 deletions .changeset/angry-dolls-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@hyperse/utils": patch
"@hyperse/core": patch
"web": patch
---

update mono for vercel deploy
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 1 addition & 1 deletion .github/workflows/release-or-version-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
# Basic security: the release job can only be executed from this repo and from the main branch (not a remote thing)
if: ${{ github.repository == 'tianyingchun/monorepo-turborepo' && contains('refs/heads/main',github.ref)}}
if: ${{ github.repository == 'hyperse-io/next.js-turborepo-starter' && contains('refs/heads/main',github.ref)}}
name: Release and changelog
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nextjs-monorepo
# next.js-monorepo-starter

Best practices on using Next.js in a TypeScript monorepo

Expand Down Expand Up @@ -37,7 +37,7 @@ the `paths` tsconfig.json also can be resolved for `apps/*`, we should avoid to

If you are looking for single repo next.js best practices starter please see below link

https://github.com/hyperse-io/next.js-starter
https://github.com/hyperse-io/next.js-turborepo-starter

### Remote Caching

Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"type": "module",
"repository": "https://github.com/hyperse-io/nextjs-monorepo-starter",
"repository": "https://github.com/hyperse-io/next.js-turborepo-starter",
"license": "MIT",
"scripts": {
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "next.js-monorepo-starter",
"private": true,
"repository": "https://github.com/hyperse-io/next.js-monorepo-starter",
"repository": "https://github.com/hyperse-io/next.js-turborepo-starter",
"description": "Best practices on using Next.js in a TypeScript monorepo",
"type": "module",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@hyperse/core",
"version": "0.0.1",
"private": true,
"repository": "https://github.com/hyperse-io/nextjs-monorepo-starter",
"repository": "https://github.com/hyperse-io/next.js-turborepo-starter",
"license": "MIT",
"sideEffects": false,
"type": "module",
Expand Down
9 changes: 9 additions & 0 deletions packages/core/tests/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { ensureSlash } from '@hyperse/utils';

describe('utils', () => {
it('should work', () => {
expect(true).toBe(true);
});
it('should correct append endfix', () => {
expect(
ensureSlash('/test', {
slashEndfix: true,
})
).toBe('/test/');
});
});
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@hyperse/utils",
"version": "0.0.1",
"private": true,
"repository": "https://github.com/hyperse-io/nextjs-monorepo-starter",
"repository": "https://github.com/hyperse-io/next.js-turborepo-starter",
"license": "MIT",
"sideEffects": false,
"type": "module",
Expand Down

0 comments on commit d8e3fa9

Please sign in to comment.