Skip to content

Commit

Permalink
build: include readme and dist folder in package
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezanet committed Nov 11, 2023
1 parent bc859f7 commit 113c431
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/client-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
id: package-version
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Copy README to client directory
run: cp ../README.md .
working-directory: client

- name: Publish to npm
run: yarn publish --access public
env:
Expand Down
42 changes: 23 additions & 19 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
{
"name": "gridify-client",
"version": "2.0.0-preview",
"description": "Client JS library for the dotnet Gridify project",
"main": "dist/GridifyQueryBuilder.js",
"types": "dist/GridifyQueryBuilder.d.ts",
"repository": "https://github.com/alirezanet/Gridify/",
"author": "AliReza Sabouri",
"license": "MIT",
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^29.5.8",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
}
"name": "gridify-client",
"version": "2.0.0-preview",
"description": "Client JS library for the dotnet Gridify project",
"main": "dist/GridifyQueryBuilder.js",
"types": "dist/GridifyQueryBuilder.d.ts",
"repository": "https://github.com/alirezanet/Gridify/",
"homepage": "https://alirezanet.github.io/Gridify/guide/gridify-client/",
"author": "AliReza Sabouri",
"license": "MIT",
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^29.5.8",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"files": [
"dist/**/*"
]
}

0 comments on commit 113c431

Please sign in to comment.