Skip to content

Commit 92ce0ca

Browse files
committed
File Structure Improved
1 parent ac4b9d4 commit 92ce0ca

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ jobs:
3636
run: npm run build
3737

3838
# Prepare dist folder for publish
39-
- name: Copy package.json to dist
40-
run: cp package.json dist/
39+
- name: Copy necessary files to dist
40+
run: cp README.md LICENSE package.json dist/
4141

4242
# Publish dist folder to npm
4343
- name: Publish dist folder to npm
44-
run: cd dist && npm publish
44+
run: npm publish --workspace dist
4545
env:
4646
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typeweaver/json2ts",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Convert JSON to TypeScript interfaces effortlessly. An open-source tool for developers to generate TypeScript types from JSON objects quickly and securely.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -49,7 +49,6 @@
4949
],
5050
"type": "module",
5151
"publishConfig": {
52-
"directory": "dist",
5352
"access": "public"
5453
}
5554
}

0 commit comments

Comments
 (0)