Skip to content

Commit

Permalink
feat(pnpm build): pnpm build fixes for ci
Browse files Browse the repository at this point in the history
separating pieces of the ci build out, ensuring packages build first
  • Loading branch information
Jake Lauer authored and Jake Lauer committed May 26, 2024
1 parent 1aa3a8f commit 4f0e64b
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 38 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:
run: pnpm test # Assuming pnpm and node_modules are correctly configured to be available

- name: Run build
run: pnpm build # Assuming pnpm and node_modules are correctly configured to be available
run: pnpm build:ci:pkg # Assuming pnpm and node_modules are correctly configured to be available

- name: Run build
run: pnpm build:ci # Assuming pnpm and node_modules are correctly configured to be available

- name: Set semantic-release command
id: set-release-command
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
"test:debug": "node --import=tsx ./node_modules/mocha/bin/mocha.js --exit --config ./.mocharc.cjs --debug-mode",
"test": "node --import=tsx ./node_modules/mocha/bin/mocha.js --exit --config ./.mocharc.cjs",
"// ==== BUILD ==== //": "",
"build": "pnpm lint-fix && tsc --project ./tsconfig.json && resolve-tspaths",
"build:base": "tsc --project ./tsconfig.json && resolve-tspaths",
"build:ci": "pnpm build:base",
"build:ci:pkg": "pnpm build:pkg",
"build": "pnpm lint-fix && pnpm build:pkg && pnpm build:base",
"build:pkg": "for dir in packages/*/; do (cd \"$dir\" && [ -f package.json ] && pnpm build); done",
"live": "tsc --watch --project ./tsconfig.json && resolve-tspaths",
"clean": "rimraf ./dist",
"// ==== EXAMPLES ==== //": "",
Expand Down
31 changes: 16 additions & 15 deletions packages/eslint-plugin-theseus/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "eslint-plugin-theseus",
"private": true,
"version": "1.0.0",
"description": "",
"main": "lib/index.js",
"scripts": {
"test": "mocha 'tests/**/*.test.js'"
},
"devDependencies": {
"eslint": "^8.57.0",
"mocha": "^10.3.0"
},
"keywords": [],
"author": "",
"license": "ISC"
"name": "eslint-plugin-theseus",
"private": true,
"version": "1.0.0",
"description": "",
"main": "lib/index.js",
"scripts": {
"build": "echo 'no build'",
"test": "mocha 'tests/**/*.test.js'"
},
"devDependencies": {
"eslint": "^8.57.0",
"mocha": "^10.3.0"
},
"keywords": [],
"author": "",
"license": "ISC"
}
43 changes: 22 additions & 21 deletions packages/gpt-zip/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"name": "@theseus/gpt-zip",
"private": true,
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"bin": {
"gpt-zip": "./index.js"
},
"dependencies": {
"archiver": "^7.0.1",
"arg": "^5.0.1",
"ignore": "^5.3.1",
"klaw-sync": "^6.0.0",
"prompts": "^2.4.2"
},
"keywords": [],
"author": "",
"license": "ISC"
"name": "@theseus/gpt-zip",
"private": true,
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "echo 'no build'",
"start": "node index.js"
},
"bin": {
"gpt-zip": "./index.js"
},
"dependencies": {
"archiver": "^7.0.1",
"arg": "^5.0.1",
"ignore": "^5.3.1",
"klaw-sync": "^6.0.0",
"prompts": "^2.4.2"
},
"keywords": [],
"author": "",
"license": "ISC"
}
1 change: 1 addition & 0 deletions packages/publisher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "echo 'no build'",
"update": "node ./update-version.js",
"pub": "node ./publish.js"
},
Expand Down

0 comments on commit 4f0e64b

Please sign in to comment.