Skip to content

Commit

Permalink
fix: actual package usage pt. 1
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzjacobs committed Jan 12, 2024
1 parent 7f8ac6c commit 6340577
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 16 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
cache: "npm"
- name: 📌 npm install
run: npm ci --prefer-offline --no-audit
- name: 🧱 build
run: npm run build
- name: 🕵️ npm test
run: npm test
- name: 🚀 release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -26,4 +26,3 @@ jobs:
cd packages/react
npm run build
npx semantic-release
npm whoami
6 changes: 3 additions & 3 deletions apps/docs/app/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Hx, HxBoundary } from "uberschrift";

<Hx>🧢 uberschrift</Hx>

Magic heading levels for React:
Zero-dependeny magic heading levels for React

```tsx
<Hx>I'm the h1!'</Hx>
Expand All @@ -26,10 +26,10 @@ Magic heading levels for React:

---

<div class="text-center">
<div className="text-center">

Sponsors <br/>
[<img class="inline-block" src="https://assets.peerigon.com/peerigon/logo/peerigon-logo-flat-spinat.png" width="150" />](https://peerigon.com)
[<img alt="Peerigon logo" src="https://assets.peerigon.com/peerigon/logo/peerigon-logo-flat-spinat.png" width="150" />](https://peerigon.com)

</div>

Expand Down
5 changes: 4 additions & 1 deletion apps/docs/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import stylesheet from "../tailwind.css";
export const meta: MetaFunction = () => {
return [
{ title: "Uberschrift" },
{ name: "description", content: "Magic heading levels for React." },
{
name: "description",
content: "Zero-dependeny magic heading levels for React",
},
];
};

Expand Down
1 change: 1 addition & 0 deletions packages/react/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"ignorePatterns": ["**/node_modules/**", "**/dist/**"],
"extends": ["@uberschrift/eslint-config/base.js"]
}
2 changes: 1 addition & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `<Hx>🧢 uberschrift</Hx>`

**Magic heading levels for React**
**Zero-dependeny magic heading levels for React**

---

Expand Down
18 changes: 10 additions & 8 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
{
"name": "uberschrift",
"type": "module",
"version": "0.0.0",
"type": "module",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/peerigon/uberschrift.git"
},
"description": "Magic heading levels for React",
"exports": {
".": "./src/index.ts"
},
"description": "Zero-dependeny magic heading levels for React",
"scripts": {
"build": "tsup src/index.ts --dts",
"dev": "echo 'okay.'",
"start": "echo 'okay.'",
"build": "tsup src/index.ts --dts --clean --format cjs,esm",
"dev": "npm run build -- --watch",
"prepublish": "npm run build",
"start": "npm run dev",
"test": "run-p test:*",
"test:lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"test:scripts": "scriptlint --strict --fix",
Expand Down

0 comments on commit 6340577

Please sign in to comment.