Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(package): Change how the package is exported (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
JForsaken authored May 4, 2022
1 parent f8116d3 commit 5aced75
Show file tree
Hide file tree
Showing 113 changed files with 218 additions and 179 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ jobs:
if: ${{ steps.release.outputs.release_created }}

- name: Publish to NPM
run: pnpm publish:npm
run: |
pnpm build
cd dist
pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
"version": "0.13.0",
"description": "Community build apps for Zapper.fi",
"license": "MIT",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"main": "./index.js",
"types": "./index.d.ts",
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc && tsc-alias -p tsconfig.aliases.json",
"postbuild": "copyfiles package.json dist",
"dev": "NODE_ENV=development nodemon --config nodemon.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"typecheck": "tsc --noEmit",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"prepublish:npm": "pnpm build",
"publish:npm": "pnpm publish --access public",
"start": "nest start",
"studio": "node ./scripts/run-cli.js",
"test": "jest --runInBand --forceExit",
Expand Down Expand Up @@ -64,6 +63,7 @@
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"conventional-changelog-conventionalcommits": "^4.6.3",
"copyfiles": "^2.4.1",
"dedent": "^0.7.0",
"dotenv": "^16.0.0",
"eslint": "^8.11.0",
Expand Down
Loading

0 comments on commit 5aced75

Please sign in to comment.