-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: solved serialport types error.
- Loading branch information
Showing
15 changed files
with
201 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"changelog": "@changesets/changelog-git", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
"ignore": [ | ||
"examples-*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@node-escpos/serialport-adapter": patch | ||
--- | ||
|
||
🚀 @node-escpos/serialport-adapter release `v0.0.1`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Changesets | ||
on: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
CI: true | ||
PNPM_CACHE_FOLDER: .pnpm-store | ||
jobs: | ||
version: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
- name: install pnpm | ||
run: npm i pnpm@latest -g | ||
- name: Setup npmrc | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | ||
- name: setup pnpm config | ||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER | ||
- name: install dependencies | ||
run: pnpm install | ||
- name: create and publish versions | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm run version | ||
commit: "chore: update versions" | ||
title: "chore: update versions" | ||
publish: pnpm run publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
ignore-workspace-root-check=true | ||
public-hoist-pattern[]=@serialport* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
"cSpell.words": [ | ||
"dohooo", | ||
"escpos", | ||
"npmrc", | ||
"PNPM", | ||
"serialport" | ||
], | ||
"prettier.enable": false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"name": "demo", | ||
"name": "examples-demo", | ||
"type": "module", | ||
"private": true, | ||
"version": "0.0.1", | ||
"packageManager": "[email protected]", | ||
"description": "", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
"author": "Caspian <[email protected]> (https://github.com/dohooo)", | ||
"scripts": { | ||
"build": "pnpm -F '@node-escpos/*' build", | ||
"publish": "pnpm -F '@node-escpos/*' publish --access public", | ||
"release": "changeset status & changeset version & pnpm run publish" | ||
"publish": "pnpm -F '@node-escpos/*' publish", | ||
"version": "changeset version" | ||
}, | ||
"engines": { | ||
"node": ">=16", | ||
|
@@ -27,6 +27,7 @@ | |
"devDependencies": { | ||
"@antfu/ni": "^0.16.2", | ||
"@antfu/utils": "^0.5.2", | ||
"@changesets/changelog-git": "^0.1.13", | ||
"@changesets/cli": "^2.25.0", | ||
"@dohooo/eslint-config": "*", | ||
"@types/node": "^17.0.44", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,7 @@ export default defineBuildConfig({ | |
rollup: { | ||
emitCJS: true, | ||
}, | ||
externals:[ | ||
"@serialport/bindings-cpp" | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"name": "@node-escpos/serialport-adapter", | ||
"type": "module", | ||
"private": true, | ||
"version": "0.0.0", | ||
"packageManager": "[email protected]", | ||
"description": "", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.