Skip to content

Commit

Permalink
feat(script-build): adicionado novo script de build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefelipeschulle committed Jun 14, 2024
1 parent cea3b04 commit 14af282
Show file tree
Hide file tree
Showing 8 changed files with 909 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: npm set //npm.pkg.github.com/:_authToken ${{ secrets.PUBLISH_TOKEN_GRP }}

- name: Publish Packages on GRP
run: npm publish --provenance --access public
run: cd dist && npm publish --provenance --access public

publish-npm:
runs-on: ubuntu-latest
Expand All @@ -55,4 +55,4 @@ jobs:
run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}

- name: Publish Packages on NPM
run: npm publish --provenance --access public
run: cd dist && npm publish --provenance --access public
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { createConfig } from '@brainylab/eslint-config';

export default createConfig({
presets: {
typescript: true,
},
});
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brainylab/prettier-config",
"version": "0.2.1",
"version": "0.2.3",
"description": "Prettier config for BrainyLab projects",
"keywords": [
"prettier",
Expand All @@ -18,17 +18,15 @@
"email": "[email protected]"
},
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist",
"package.json",
"README.md"
],
"exports": "./index.js",
"main": "./index.js",
"module": "./index.js",
"types": "./index.d.ts",
"scripts": {
"build": "npx tsup",
"build": "npm run build:remove && npm run build:configs && npm run build:packages",
"build:configs": "npx tsup",
"build:packages": "npx tsx ./scripts/build-packages.ts",
"build:remove": "rm -rf ./dist",
"commit": "pnpm commit:add && pnpm commit:detail && pnpm commit:push",
"commit:add": "git add .",
"commit:detail": "cz",
Expand All @@ -45,10 +43,13 @@
"prettier-plugin-packagejson": "^2.5.0"
},
"devDependencies": {
"@brainylab/eslint-config": "^2.3.3",
"@types/node": "^20.14.2",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"fast-glob": "^3.3.2",
"tsup": "^8.1.0",
"tsx": "^4.15.4",
"typescript": "^5.4.5"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 14af282

Please sign in to comment.