Skip to content

Commit

Permalink
fix: 馃悰 update path for package.json "main" and "types" files (#930)
Browse files Browse the repository at this point in the history
when moving package.json into `dist` relative paths need to be updated
  • Loading branch information
polymath-eric committed Jan 30, 2023
1 parent b1ed224 commit 4c3f1e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: build
run: |
yarn build:ts
cp package.json dist/package.json
sed 's/dist\//.\//' package.json > dist/package.json
cp README.md dist/README.md
cp -R node_modules dist/node_modules
- name: release
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "High-level API to interact with the Polymesh blockchain",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Polymath Studios Inc.",
"author": "Polymesh Association",
"license": "ISC",
"scripts": {
"start": "cross-env node scripts/generateTsconfigDev.js && cross-env webpack-dev-server --config=webpack.config.dev.js",
Expand Down

0 comments on commit 4c3f1e9

Please sign in to comment.