Skip to content

Commit 1eb92d4

Browse files
committed
Update package architecture
1 parent a7b2581 commit 1eb92d4

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
lines changed

.github/workflows/mc-update.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ jobs:
1313
- uses: actions/setup-node@v3
1414
with:
1515
node-version: 16
16+
- uses: pnpm/action-setup@v2
17+
with:
18+
version: 8
1619
- run: git checkout master
17-
- run: npm install
18-
- run: npm install @types/node
20+
- run: pnpm install
21+
- run: pnpm install @types/node
1922
- run: node scripts/generateLists.mjs
2023
- uses: EndBug/add-and-commit@v9
2124
with:

.github/workflows/prerelease.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ jobs:
1414
- uses: actions/setup-node@v1
1515
with:
1616
node-version: 16
17-
- run: npm install -f --production
18-
- run: npm install @types/node
19-
- run: npm run build
17+
- uses: pnpm/action-setup@v2
18+
with:
19+
version: 8
20+
- run: pnpm install -f --production
21+
- run: pnpm install @types/node
22+
- run: pnpm run build
2023
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./dist/.npmrc
2124
env:
2225
NPM_TOKEN: ${{secrets.npm_token}}
23-
- run: cd dist && npm publish --tag next
26+
- run: npm publish --tag next
2427
env:
2528
NPM_TOKEN: ${{secrets.npm_token}}

.github/workflows/release.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ jobs:
1414
- uses: actions/setup-node@v1
1515
with:
1616
node-version: 16
17-
- run: npm install -f --production
18-
- run: npm install @types/node
19-
- run: npm run build
17+
- uses: pnpm/action-setup@v2
18+
with:
19+
version: 8
20+
- run: pnpm install -f --production
21+
- run: pnpm install @types/node
22+
- run: pnpm run build
2023
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./dist/.npmrc
2124
env:
2225
NPM_TOKEN: ${{secrets.npm_token}}
23-
- run: cd dist && npm publish
26+
- run: npm publish
2427
env:
2528
NPM_TOKEN: ${{secrets.npm_token}}

.husky/.gitignore

-1
This file was deleted.

.husky/pre-commit

-4
This file was deleted.

.npmignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.prettierrc.js
3+
.tsbuildinfo
4+
.eslintignore
5+
.eslintrc.cjs
6+
.editorconfig
7+
.gitignore

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"build-types": "tsc --emitDeclarationOnly",
9090
"setup-package": "node ./scripts/setupPackage.js",
9191
"setup": "pnpm run build-types && pnpm run setup-package && echo ✔️ Successfully built Sandstone.",
92-
"build-pack": "pnpm run build && cd dist && pnpm pack",
9392
"publishToNpm": "pnpm run build && pnpm publish",
9493
"format": "eslint src --cache --fix --quiet"
9594
},

0 commit comments

Comments
 (0)