From 936a93ea5e0a31694b99a23754877d5f66e43833 Mon Sep 17 00:00:00 2001 From: Ronald Arias Date: Wed, 7 Aug 2024 16:30:31 -0500 Subject: [PATCH] fix package.json --- package.json | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 0270d43..08d0738 100644 --- a/package.json +++ b/package.json @@ -7,36 +7,44 @@ "url": "https://github.com/JupiterOne/graph-sonarqube" }, "license": "MPL-2.0", - "main": "dist/index.js", - "types": "dist/index.d.ts", + "main": "src/index.js", + "types": "src/index.d.ts", "files": [ - "dist" + "src", + "jupiterone" ], "publishConfig": { "access": "public" }, + "engines": { + "node": ">=18.0.0 <19.x" + }, "scripts": { - "document": "j1-integration document", "start": "j1-integration collect", "graph": "j1-integration visualize", "graph:types": "j1-integration visualize-types", + "graph:spec": "j1-integration visualize-types --project-path docs/spec --output-file ./.j1-integration/types-graph/index.spec.html", + "graph:dependencies": "j1-integration visualize-dependencies", + "validate:questions:dry": "j1-integration validate-question-file --dry-run", + "validate:questions": "j1-integration validate-question-file -a $MANAGED_QUESTIONS_JUPITERONE_ACCOUNT_ID -k $MANAGED_QUESTIONS_JUPITERONE_API_KEY", "lint": "eslint . --cache --fix --ext .ts,.tsx", - "format": "prettier --write '**/*.{ts,js,json,css,md,yml}'", + "format": "prettier --write \"**/*.{ts,js,json,css,md,yml}\"", + "format:check": "prettier --check \"**/*.{ts,js,json,css,md,yml}\"", "type-check": "tsc", "test": "jest", "test:env": "LOAD_ENV=1 yarn test", - "test:ci": "yarn lint && yarn type-check && yarn test", - "build": "tsc -p tsconfig.dist.json --declaration", - "prepush": "yarn lint && yarn type-check && jest --changedSince main", - "prepack": "yarn build" + "test:ci": "yarn format:check && yarn lint && yarn type-check && yarn test", + "build": "tsc -p tsconfig.dist.json --declaration && cp README.md dist/README.md && cp -r jupiterone/ dist/jupiterone/", + "prepush": "yarn format:check && yarn lint && yarn type-check && jest --changedSince main", + "postversion": "cp package.json ./dist/package.json" }, "peerDependencies": { - "@jupiterone/integration-sdk-core": "^13.1.0" + "@jupiterone/integration-sdk-core": "^13.2.0" }, "devDependencies": { - "@jupiterone/integration-sdk-core": "^13.1.0", - "@jupiterone/integration-sdk-dev-tools": "^13.1.0", - "@jupiterone/integration-sdk-testing": "^13.1.0", + "@jupiterone/integration-sdk-core": "^13.2.0", + "@jupiterone/integration-sdk-dev-tools": "^13.2.0", + "@jupiterone/integration-sdk-testing": "^13.2.0", "@types/node": "^22.0.2", "@types/node-fetch": "^2.6.11" },