Skip to content

Commit

Permalink
Apply dist folder to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
cregourd committed Oct 28, 2024
1 parent 4b60181 commit 912f782
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 424 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-comics-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@premieroctet/next-admin-cli": patch
---

Apply dist/
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"changesets": [
"cool-meals-obey",
"fifty-chairs-travel",
"four-comics-deny",
"lemon-bears-attend",
"nasty-clouds-deny",
"sour-garlics-dress"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: changesets/action@v1
with:
version: yarn changeset-version
publish: yarn publish-package
publish: yarn publish-packages
title: ${{github.ref_name}} — Version Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: yarn install

- name: Build required packages
run: yarn turbo run build --filter=@premieroctet/next-admin-json-schema --filter=@premieroctet/next-admin-generator-prisma
run: yarn build:packages

- name: Generate Prisma client
run: cd apps/example && yarn prisma generate
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"start:example": "turbo run start --filter=example",
"build": "turbo run build",
"build:example": "turbo run build --filter=example",
"build:next-admin": "turbo run build --filter=@premieroctet/next-admin --filter=@premieroctet/next-admin-cli",
"build:next-admin": "turbo run build --filter=@premieroctet/next-admin",
"build:packages": "turbo run build --filter=@premieroctet/next-admin --filter=@premieroctet/next-admin-cli --filter=@premieroctet/next-admin-generator-prisma --filter=@premieroctet/next-admin-json-schema",
"dev": "turbo run dev",
"dev:docs": "turbo run dev --filter=docs",
"lint": "turbo run lint",
Expand All @@ -21,7 +22,7 @@
"database": "dotenv turbo run database",
"reset-database": "dotenv turbo run reset-database",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"publish-package": "yarn build:next-admin && changeset publish",
"publish-packages": "yarn build:packages && changeset publish",
"changeset-version": "(changeset version) && cp packages/next-admin/CHANGELOG.md apps/docs/pages/changelog/index.md && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install",
"clean": "turbo run clean"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @premieroctet/next-admin-cli

## 0.0.5-rc.1

### Patch Changes

- Apply dist/

## 0.0.5-rc.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@premieroctet/next-admin-cli",
"version": "0.0.5-rc.0",
"version": "0.0.5-rc.1",
"description": "CLI for Next-Admin, an admin dashboard for Next.js applications.",
"bin": "dist/index.js",
"keywords": [
Expand Down
4 changes: 1 addition & 3 deletions packages/next-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"homepage": "https://next-admin.js.org/",
"license": "MIT",
"scripts": {
"js": "tsc",
"build": "npm run js",
"build": "tsc",
"dev": "tsc --watch",
"lint": "eslint \"**/*.{ts,tsx}\"",
"test": "jest",
Expand Down Expand Up @@ -144,7 +143,6 @@
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tsconfig": "workspace:*",
"tsup": "^6.7.0",
"typescript": "^5.1.6"
},
"optionalDependencies": {
Expand Down
15 changes: 3 additions & 12 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local",
"**/.env"
],
"globalDependencies": ["**/.env.*local", "**/.env"],
"globalEnv": [
"NODE_ENV",
"BASE_URL",
Expand All @@ -14,14 +11,8 @@
"tasks": {
"start": {},
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
".next/**",
"!.next/cache/**"
]
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
},
"lint": {
"outputs": []
Expand Down
Loading

0 comments on commit 912f782

Please sign in to comment.