Skip to content

Commit

Permalink
fix: add uroborosql-fmt-napi-0.0.0.tgz to .vscodeignore (#7)
Browse files Browse the repository at this point in the history
* fix: add uroborosql-fmt-napi-0.0.0.tgz  to .vscodeignore

* fix
  • Loading branch information
ota-meshi authored Sep 26, 2023
1 parent a9c87d2 commit 93e5ada
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
},
env: {
node: true
}
};
3 changes: 0 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ jobs:
with:
node-version: 14.x
- run: |
cd server
curl -OL https://future-architect.github.io/uroborosql-fmt/uroborosql-fmt-napi-0.0.0.tgz
cd ..
npm install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ out
node_modules
client/server
.vscode-test
uroborosql-fmt-1.0.0.vsix
uroborosql-fmt-1.0.0.vsix
/server/uroborosql-fmt-napi-0.0.0.tgz
3 changes: 2 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ client/node_modules/**
!client/node_modules/vscode-languageserver-protocol/**
!client/node_modules/vscode-languageserver-types/**
!client/node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/**
!client/node_modules/{semver,lru-cache,yallist}/**
!client/node_modules/{semver,lru-cache,yallist}/**
/server/uroborosql-fmt-napi-0.0.0.tgz
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh"
"postinstall": "npm run download-uroborosql-fmt-napi && cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh",
"download-uroborosql-fmt-napi": "node ./server/download-uroborosql-fmt-napi.mjs"
},
"devDependencies": {
"@types/mocha": "^9.1.0",
Expand Down
16 changes: 16 additions & 0 deletions server/download-uroborosql-fmt-napi.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { writeFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

main();

async function main() {
const res = await fetch(
"https://future-architect.github.io/uroborosql-fmt/uroborosql-fmt-napi-0.0.0.tgz"
);
const destination = join(__dirname, "uroborosql-fmt-napi-0.0.0.tgz");
writeFileSync(destination, Buffer.from(await res.arrayBuffer()));
}
4 changes: 2 additions & 2 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93e5ada

Please sign in to comment.