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

fix(package): Change how the package is exported #355

Merged
merged 3 commits into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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