chore: prepare npm package for publish
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,6 +7,7 @@ node_modules/
|
|||||||
!.env.example
|
!.env.example
|
||||||
|
|
||||||
# build artifacts
|
# build artifacts
|
||||||
|
/dist/
|
||||||
/dist-test/
|
/dist-test/
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ npm ci
|
|||||||
npm run typecheck
|
npm run typecheck
|
||||||
```
|
```
|
||||||
|
|
||||||
There are currently no lint or test scripts in this repo.
|
There are currently no lint scripts in this repo. Run tests with `npm test`.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
39
package.json
39
package.json
@@ -1,21 +1,40 @@
|
|||||||
{
|
{
|
||||||
"name": "envsitter-guard",
|
"name": "envsitter-guard",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"description": "OpenCode plugin that prevents agents/tools from reading or editing sensitive .env* files, while still allowing safe inspection via EnvSitter.",
|
||||||
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"default": "./dist/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist/",
|
||||||
|
"README.md",
|
||||||
|
"LICENSE"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsc -p tsconfig.build.json",
|
||||||
|
"typecheck": "tsc -p tsconfig.json",
|
||||||
|
"build:test": "tsc -p tsconfig.test.json",
|
||||||
|
"test": "npm run build:test && node --test dist-test/test/*.test.js",
|
||||||
|
"prepack": "npm run build",
|
||||||
|
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@opencode-ai/plugin": "^1.1.14",
|
||||||
|
"envsitter": "^0.0.1"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@opencode-ai/plugin": "*",
|
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"publishConfig": {
|
||||||
"envsitter": "*"
|
"access": "public"
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"typecheck": "tsc -p tsconfig.json",
|
|
||||||
"build:test": "tsc -p tsconfig.test.json",
|
|
||||||
"test": "npm run build:test && node --test dist-test/test/*.test.js",
|
|
||||||
"prepare": "husky"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
tsconfig.build.json
Normal file
11
tsconfig.build.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"noEmit": false,
|
||||||
|
"outDir": "./dist",
|
||||||
|
"declaration": true,
|
||||||
|
"declarationMap": true,
|
||||||
|
"sourceMap": true
|
||||||
|
},
|
||||||
|
"include": ["index.ts"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user