Skip to content

chore(jmespath): add package to workspace #2185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"packages/idempotency",
"packages/batch",
"packages/testing",
"packages/jmespath",
"examples/cdk",
"examples/sam",
"layers",
Expand All @@ -16,4 +17,4 @@
"version": "2.0.2",
"npmClient": "npm",
"message": "chore(release): %s [skip ci]"
}
}
13 changes: 13 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"packages/idempotency",
"packages/batch",
"packages/testing",
"packages/jmespath",
"docs/snippets",
"layers",
"examples/cdk",
Expand Down
34 changes: 34 additions & 0 deletions packages/jmespath/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
displayName: {
name: 'Powertools for AWS Lambda (TypeScript) utility: JMESPATH',
color: 'purple',
},
runner: 'groups',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.ts?$': 'ts-jest',
},
moduleFileExtensions: ['js', 'ts'],
collectCoverageFrom: ['**/src/**/*.ts', '!**/node_modules/**'],
testMatch: ['**/?(*.)+(spec|test).ts'],
roots: ['<rootDir>/src', '<rootDir>/tests'],
testPathIgnorePatterns: ['/node_modules/'],
testEnvironment: 'node',
coveragePathIgnorePatterns: [
'/node_modules/',
'src/index.ts',
'src/types/index.ts',
],
coverageThreshold: {
global: {
statements: 100,
branches: 100,
functions: 100,
lines: 100,
},
},
coverageReporters: ['json-summary', 'text', 'lcov'],
setupFiles: ['<rootDir>/tests/helpers/populateEnvironmentVariables.ts'],
};
93 changes: 93 additions & 0 deletions packages/jmespath/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"name": "@aws-lambda-powertools/jmespath",
"version": "2.0.2",
"description": "A type safe and modern jmespath module to parse and extract data from JSON documents using JMESPath",
"author": {
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"private": true,
"scripts": {
"test": "npm run test:unit",
"test:unit": "jest --group=unit --detectOpenHandles --coverage",
"jest": "jest --detectOpenHandles --verbose",
"test:e2e": "echo 'Not applicable for this package'",
"watch": "jest --watch --group=unit",
"build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
"build": "npm run build:esm & npm run build:cjs",
"lint": "eslint --ext .ts,.js --no-error-on-unmatched-pattern .",
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
},
"lint-staged": {
"*.{js,ts}": "npm run lint-fix"
},
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript",
"license": "MIT-0",
"type": "module",
"exports": {
".": {
"require": {
"types": "./lib/cjs/index.d.ts",
"default": "./lib/cjs/index.js"
},
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
}
},
"./envelopes": {
"import": "./lib/esm/envelopes.js",
"require": "./lib/cjs/envelopes.js"
},
"./functions": {
"import": "./lib/esm/PowertoolsFunctions.js",
"require": "./lib/cjs/PowertoolsFunctions.js"
},
"./types": {
"import": "./lib/esm/types.js",
"require": "./lib/cjs/types.js"
}
},
"typesVersions": {
"*": {
"envelopes": [
"lib/cjs/envelopes.d.ts",
"lib/esm/envelopes.d.ts"
],
"functions": [
"lib/cjs/PowertoolsFunctions.d.ts",
"lib/esm/PowertoolsFunctions.d.ts"
],
"types": [
"lib/cjs/types.d.ts",
"lib/esm/types.d.ts"
]
}
},
"types": "./lib/cjs/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib"
],
"dependencies": {
"@aws-lambda-powertools/commons": "^2.0.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"keywords": [
"aws",
"lambda",
"powertools",
"jmespath",
"serverless",
"typescript",
"nodejs"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Powertools for AWS Lambda (TypeScript) variables
12 changes: 12 additions & 0 deletions packages/jmespath/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.esm.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "./lib/esm",
"rootDir": "./src",
"tsBuildInfoFile": ".tsbuildinfo/esm.json"
},
"include": [
"./src/**/*"
]
}
11 changes: 11 additions & 0 deletions packages/jmespath/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib/cjs/",
"rootDir": "./src",
"tsBuildInfoFile": ".tsbuildinfo/cjs.json"
},
"include": [
"./src/**/*"
]
}
12 changes: 12 additions & 0 deletions packages/jmespath/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": [
"../../typedoc.base.json"
],
"entryPoints": [
"./src/index.ts",
"./src/types.ts",
"./src/envelopes.ts",
"./src/PowertoolsFunctions.ts",
],
"readme": "README.md"
}