{ "license": "MIT", "name": "sdk-codegen-all", "version": "26.10.0", "description": "All workspaces for SDK code generation", "author": "Looker", "private": true, "workspaces": [ "apix-files", "bin/looker-resources-index", "packages/*" ], "homepage": "https://github.com/looker-open-source/sdk-codegen#readme", "repository": { "type": "git", "url": "git+https://github.com/looker-open-source/sdk-codegen.git" }, "bugs": { "url": "https://github.com/looker-open-source/sdk-codegen/issues" }, "engines": { "node": ">=18", "yarn": ">=1.22.0" }, "scripts": { "convert": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/specConvert.ts", "legacy": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/legacy.ts", "gen": "NODE_CONFIG_DIR=./packages/sdk-codegen-scripts/config ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/sdkGen.ts", "jsonify": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/yamlToJson.ts", "mine": "run-p -c mine:*", "mine:declarations": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/scripts/mineDeclarations.ts", "mine:examples": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/scripts/mineExamples.ts", "vox": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/scripts/vox.ts", "example": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }'", "view": "yarn api-explorer", "wipe": "rm -rf api spec", "build": "rm -Rf packages/*/lib && run-p -c build:*", "build:cjs": "lerna exec --ignore @internal/* --stream 'BABEL_ENV=build_cjs babel src --root-mode upward --out-dir lib --source-maps --extensions .ts,.tsx --no-comments'", "build:es": "lerna exec --ignore @internal/* --stream 'BABEL_ENV=build babel src --root-mode upward --out-dir lib/esm --source-maps --extensions .ts,.tsx --no-comments'", "build:ts": "lerna exec --ignore @internal/* --stream --sort 'tsc -b tsconfig.build.json'", "build-extensions": "lerna run bundle", "dedupe:dev": "yarn-deduplicate -s fewer yarn.lock && yarn", "dedupe:list": "yarn-deduplicate --list", "dedupe:ci": "yarn-deduplicate -s fewer --fail --list yarn.lock", "deploy:apix": "packages/extension-api-explorer/bin/deploy", "dev:apix": "yarn workspace @looker/api-explorer develop", "dev:hack": "yarn workspace @looker/hackathon develop", "dev:xapix": "yarn workspace @looker/extension-api-explorer develop", "dev:playground": "yarn workspace @looker/extension-playground develop", "dev:tile": "yarn workspace @looker/extension-tile-playground develop", "clean": "rm -Rf packages/*/lib", "prepublishOnly": "jest packages/sdk-rtl", "fix": "yarn lint:es --fix", "lint": "run-p -c lint:*", "lint:es": "eslint 'packages/**/*.ts{,x}' --cache", "lint-quiet:es": "eslint 'packages/**/*.ts{,x}' --cache --quiet", "lint:ts": "tsc", "lint-staged": "yarn exec lint-staged", "lint-changed": "eslint $(git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E \"(.js$|.ts$|.tsx$)\") --quiet", "lint-changed-fix": "eslint $(git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E \"(.js$|.ts$|.tsx$)\") --quiet --fix", "spec:diff": "SUPPRESS_NO_CONFIG_WARNING=1 ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/scripts/specLinter.ts", "refresh": "SUPPRESS_NO_CONFIG_WARNING=1 ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/scripts/refresh_specs.ts", "register": "SUPPRESS_NO_CONFIG_WARNING=1 ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/scripts/register.ts", "test": "yarn jest", "test:ts": "yarn jest --reporters=default --reporters=jest-junit", "test:art": "yarn jest packages/wholly-artifact/src", "test:apix": "yarn jest packages/api-explorer/src packages/extension-utils packages/run-it packages/code-editor packages/extension-api-explorer", "test:apix-e2e": "yarn workspace @looker/api-explorer run test:e2e", "test:iphone": "xcodebuild test -project swift/looker/looker.xcodeproj -scheme looker-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.4.1' | xcpretty --test --color", "test:gen": "yarn jest packages/sdk-codegen", "test:redux": "yarn jest packages/redux", "test:sdk": "yarn jest packages/sdk", "test:node": "find . -name \"*.apispec.ts\" -not -path \"./node_modules/*\" -exec node --import tsx --test-timeout 90000 --test {} ';'", "test:nodeci": "find . -name \"sdk.apispec.ts\" -not -path \"./node_modules/*\" -exec node --import tsx --test-timeout 90000 --test-reporter junit --test {} ';'", "test:jest": "DOT_ENV_FILE=.env.test jest", "test:ext": "yarn jest packages/extension-sdk packages/extension-sdk-react", "test:hack": "yarn jest packages/wholly-artifact/src packages/hackathon", "sync": "yarn syncpack fix-mismatches && yarn install && yarn dedupe:dev", "bootstrap": "lerna clean -y && lerna bootstrap", "watch": "lerna run --parallel watch", "watch:cjs": "lerna run --parallel watch:cjs" }, "devDependencies": { "@babel/cli": "^7.13.16", "@babel/core": "^7.14.0", "@babel/eslint-parser": "7.23.3", "@babel/plugin-proposal-class-properties": "^7.13.0", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8", "@babel/plugin-proposal-object-rest-spread": "^7.13.8", "@babel/plugin-proposal-optional-chaining": "^7.13.12", "@babel/preset-env": "^7.14.0", "@babel/preset-react": "^7.13.13", "@babel/preset-typescript": "^7.13.0", "@babel/runtime": "^7.14.0", "@babel/runtime-corejs3": "^7.14.0", "@looker/eslint-config": "1.5.1", "@looker/eslint-config-oss": "1.7.21", "@looker/eslint-plugin": "~1.0.0", "@testing-library/jest-dom": "5.16.5", "@types/blueimp-md5": "^2.7.0", "@types/ini": "^1.3.30", "@types/jest": "29.2.4", "@types/js-yaml": "4.0.9", "@types/lodash": "4.14.172", "@types/node": "22.5.4", "@types/prettier": "2.7.3", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", "babel-core": "^7.0.0-bridge", "babel-loader-exclude-node-modules-except": "1.1.2", "babel-plugin-styled-components": "1.10.7", "core-js": "3.6.5", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "1.15.2", "eslint": "8.24.0", "eslint-config-prettier": "8.5.0", "eslint-config-standard": "17.0.0", "eslint-plugin-header": "3.1.1", "eslint-plugin-import": "2.29.0", "eslint-plugin-jest": "27.2.1", "eslint-plugin-jest-dom": "4.0.3", "eslint-plugin-lodash": "7.4.0", "eslint-plugin-mdx": "3.1.1", "eslint-plugin-n": "15.2.4", "eslint-plugin-node": "11.1.0", "eslint-plugin-prettier": "4.2.1", "eslint-plugin-promise": "6.1.1", "eslint-plugin-react": "7.29.4", "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-testing-library": "^5.3.1", "eslint-plugin-unicorn": "^44.0.2", "jest": "29.3.1", "jest-canvas-mock": "2.4.0", "jest-environment-jsdom": "29.7.0", "jest-environment-node": "29.7.0", "jest-junit": "12.3.0", "jest-styled-components": "7.1.1", "js-yaml": "4.1.0", "jsdom": "21.1.2", "lerna": "3.22.1", "lint-staged": "10.2.2", "lodash": "4.17.21", "node-forge": "1.3.1", "npm-run-all": "4.1.5", "openapi3-ts": "2.0.2", "pre-commit": "1.2.2", "prettier": "2.8.8", "pretty-quick": "2.0.2", "react": "^17.0.2", "react-dom": "^17.0.2", "regenerator-runtime": "0.13.11", "resize-observer-polyfill": "1.5.1", "styled-components": "^5.3.1", "syncpack": "11.2.1", "ts-jest": "^29.0.5", "ts-node": "10.9.1", "typescript": "5.5.4", "url-loader": "4.1.1", "uuid": "9.0.1", "webpack": "5.94.0", "webpack-bundle-analyzer": "^4.10.2", "webpack-merge": "^5.10.0", "whatwg-fetch": "^3.6.20" }, "lint-staged": { "**/*.ts?(x)": [ "eslint" ], "**/*.js?(x)": [ "eslint" ], "**/*.mdx": [ "eslint" ] }, "pre-commit": [ "lint-staged" ], "eslintConfig": { "root": true, "parser": "@typescript-eslint/parser", "extends": [ "@looker/eslint-config-oss" ], "rules": { "@typescript-eslint/no-explicit-any": "off", "camelcase": "off", "@typescript-eslint/interface-name-prefix": "off", "@typescript-eslint/no-unused-vars": [ "warn", { "args": "none", "varsIgnorePattern": "^_" } ], "sort-keys-fix/sort-keys-fix": "off", "no-useless-constructor": "off", "@typescript-eslint/no-empty-interface": "off", "import/default": "off", "import/export": "warn", "import/order": "off", "sort-imports": "off", "import/no-duplicates": "off", "import/no-extraneous-dependencies": [ "off", { "devDependencies": false, "optionalDependencies": false, "peerDependencies": false } ], "no-duplicate-imports": "off", "sort-keys": "off", "no-nested-ternary": "off", "spaced-comment": [ "error", "always", { "markers": [ "#region", "#endregion" ] } ], "no-use-before-define": "off", "header/header": [ 2, "block", [ "", "", " MIT License", "", { "pattern": " Copyright \\(c\\) 20\\d{2} Looker Data Sciences, Inc.", "template": " Copyright (c) 2023 Looker Data Sciences, Inc." }, "", " Permission is hereby granted, free of charge, to any person obtaining a copy", " of this software and associated documentation files (the \"Software\"), to deal", " in the Software without restriction, including without limitation the rights", " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell", " copies of the Software, and to permit persons to whom the Software is", " furnished to do so, subject to the following conditions:", "", " The above copyright notice and this permission notice shall be included in all", " copies or substantial portions of the Software.", "", " THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR", " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,", " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE", " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER", " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,", " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE", " SOFTWARE.", "", " " ], 1 ] }, "settings": { "import/resolver": { "typescript": { "project": "./tsconfig.json" } }, "import/external-module-folders": [ "node_modules", "packages" ] }, "overrides": [ { "files": [ "packages/run-it/**/*.ts{,x}", "packages/api-explorer/**/*.ts{,x}", "packages/hackathon/**/*.ts{,x}" ], "rules": { "no-restricted-imports": "off" } }, { "files": [ "packages/sdk-codegen/**/*.ts", "packages/sdk-codegen-scripts/**/*.ts" ], "rules": { "testing-library/render-result-naming-convention": "off" } }, { "files": [ "packages/redux/**/*.ts?(x)", "packages/redux/**/*.spec.ts?(x)" ], "rules": { "testing-library/render-result-naming-convention": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/ban-ts-comment": "off", "testing-library/prefer-screen-queries": "off" } }, { "files": [ "packages/sdk-codegen-scripts/**/*.ts" ], "rules": { "no-console": "off" } }, { "files": [ "**/*.spec.ts" ], "rules": { "no-console": "off", "@typescript-eslint/no-non-null-assertion": "off" } }, { "files": [ "*.js" ], "rules": { "@typescript-eslint/no-var-requires": "off" } } ] }, "eslintignore": [ "bin/looker-resources-index/tmp/compiled-typescript/**/*.js" ], "keywords": [], "resolutions": { "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/experimental-utils": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", "@types/react": "17.0.65", "react": "^17.0.2", "set-value": "^2.0.1", "trim": ">= 0.0.3", "trim-newlines": ">= 3.0.1", "glob-parent": ">= 5.1.2", "ws": ">= 7.4.6", "**/url-parse": ">= 1.5.7", "parse-url": "^8.1.0", "cheerio": "1.0.0-rc.12" }, "dependencies": { "yarn": "^1.22.22", "yarn-deduplicate": "^6.0.2" } }