Skip to content

Commit

Permalink
fix(studio): included necessary files for Next.js startup (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-chernicki authored Jan 17, 2024
1 parent 981397f commit 4e64f3e
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .changeset/brave-dogs-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"commonality": patch
"@commonalityco/studio": patch
---

Fixes issue where missing files prevented Studio from starting up
1 change: 1 addition & 0 deletions apps/commonality/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"execa": "^8.0.1",
"mock-fs": "^5.2.0",
"npm-run-all": "^4.1.5",
"rimraf": "^5.0.5",
"tsup": "^8.0.1",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
Expand Down
6 changes: 3 additions & 3 deletions apps/commonality/test/integration/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe.concurrent('init', () => {
() => {
expect(initOutput).toContain(`Installed commonality`);
},
{ timeout: 100_000 },
{ timeout: 200_000 },
);

await vi.waitFor(() => {
Expand All @@ -128,7 +128,7 @@ describe.concurrent('init', () => {
`Installed commonality-checks-recommended`,
);
},
{ timeout: 100_000 },
{ timeout: 200_000 },
);

await vi.waitFor(() => {
Expand Down Expand Up @@ -246,7 +246,7 @@ describe.concurrent('init', () => {
() => {
expect(initOutput).toContain(`Installed commonality`);
},
{ timeout: 100_000 },
{ timeout: 200_000 },
);

await vi.waitFor(() => {
Expand Down
1 change: 1 addition & 0 deletions apps/studio/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ scripts
test
cypress
.turbo
.next/cache
14 changes: 5 additions & 9 deletions apps/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"scripts": {
"dev": "COMMONALITY_ROOT_DIRECTORY='../../' NODE_ENV=development node server.js",
"build": "next build",
"build": "next build && pnpm run clean-cache",
"clean-cache": "rimraf .next/cache",
"analyze": "ANALYZE=true next build",
"start": "NODE_ENV=production node server.js",
"lint": "eslint .",
Expand All @@ -22,13 +23,7 @@
},
"main": "./start.mjs",
"files": [
".next/server",
".next/static",
".next/types",
".next/app-build-manifest.json",
".next/build-manifest.json",
".next/react-loadable-manifest.json",
".next/package.json",
".next/",
"start.mjs",
"next.config.js",
"server.js",
Expand Down Expand Up @@ -87,6 +82,7 @@
"cypress": "^13.6.1",
"cytoscape": "^3.26.0",
"date-fns": "^2.30.0",
"rimraf": "^5.0.5",
"eslint-config-next": "^14.0.1",
"fs-extra": "^11.1.1",
"get-port": "^7.0.0",
Expand Down Expand Up @@ -122,4 +118,4 @@
"url": "https://github.com/commonalityco/commonality",
"directory": "apps/studio"
}
}
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"changeset:create": "changeset",
"changeset:release": "changeset publish",
"changeset:version": "changeset version",
"clean": "rimraf ./packages/**/dist ./packages/**/.turbo ./packages/*/node_modules ./coverage ./node_modules",
"commonality:publish": "commonality publish",
"dev": "turbo run dev --parallel --cache-dir=.turbo",
"link-all": "ts-node scripts/link-all.ts",
Expand Down Expand Up @@ -44,7 +43,6 @@
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.11",
"rimraf": "^5.0.5",
"ts-node": "^10.9.2",
"turbo": "^1.11.2",
"typescript": "^5.3.3",
Expand Down
18 changes: 15 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e64f3e

Please sign in to comment.