Skip to content

Commit 5798ee8

Browse files
authored
chore(jmespath): add package to workspace (#2185)
1 parent df9c7e2 commit 5798ee8

9 files changed

+179
-1
lines changed

Diff for: lerna.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"packages/idempotency",
99
"packages/batch",
1010
"packages/testing",
11+
"packages/jmespath",
1112
"examples/cdk",
1213
"examples/sam",
1314
"layers",
@@ -16,4 +17,4 @@
1617
"version": "2.0.2",
1718
"npmClient": "npm",
1819
"message": "chore(release): %s [skip ci]"
19-
}
20+
}

Diff for: package-lock.json

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"packages/idempotency",
1212
"packages/batch",
1313
"packages/testing",
14+
"packages/jmespath",
1415
"docs/snippets",
1516
"layers",
1617
"examples/cdk",

Diff for: packages/jmespath/jest.config.cjs

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
displayName: {
3+
name: 'Powertools for AWS Lambda (TypeScript) utility: JMESPATH',
4+
color: 'purple',
5+
},
6+
runner: 'groups',
7+
moduleNameMapper: {
8+
'^(\\.{1,2}/.*)\\.js$': '$1',
9+
},
10+
transform: {
11+
'^.+\\.ts?$': 'ts-jest',
12+
},
13+
moduleFileExtensions: ['js', 'ts'],
14+
collectCoverageFrom: ['**/src/**/*.ts', '!**/node_modules/**'],
15+
testMatch: ['**/?(*.)+(spec|test).ts'],
16+
roots: ['<rootDir>/src', '<rootDir>/tests'],
17+
testPathIgnorePatterns: ['/node_modules/'],
18+
testEnvironment: 'node',
19+
coveragePathIgnorePatterns: [
20+
'/node_modules/',
21+
'src/index.ts',
22+
'src/types/index.ts',
23+
],
24+
coverageThreshold: {
25+
global: {
26+
statements: 100,
27+
branches: 100,
28+
functions: 100,
29+
lines: 100,
30+
},
31+
},
32+
coverageReporters: ['json-summary', 'text', 'lcov'],
33+
setupFiles: ['<rootDir>/tests/helpers/populateEnvironmentVariables.ts'],
34+
};

Diff for: packages/jmespath/package.json

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"name": "@aws-lambda-powertools/jmespath",
3+
"version": "2.0.2",
4+
"description": "A type safe and modern jmespath module to parse and extract data from JSON documents using JMESPath",
5+
"author": {
6+
"name": "Amazon Web Services",
7+
"url": "https://aws.amazon.com"
8+
},
9+
"private": true,
10+
"scripts": {
11+
"test": "npm run test:unit",
12+
"test:unit": "jest --group=unit --detectOpenHandles --coverage",
13+
"jest": "jest --detectOpenHandles --verbose",
14+
"test:e2e": "echo 'Not applicable for this package'",
15+
"watch": "jest --watch --group=unit",
16+
"build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
17+
"build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
18+
"build": "npm run build:esm & npm run build:cjs",
19+
"lint": "eslint --ext .ts,.js --no-error-on-unmatched-pattern .",
20+
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
21+
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
22+
},
23+
"lint-staged": {
24+
"*.{js,ts}": "npm run lint-fix"
25+
},
26+
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript",
27+
"license": "MIT-0",
28+
"type": "module",
29+
"exports": {
30+
".": {
31+
"require": {
32+
"types": "./lib/cjs/index.d.ts",
33+
"default": "./lib/cjs/index.js"
34+
},
35+
"import": {
36+
"types": "./lib/esm/index.d.ts",
37+
"default": "./lib/esm/index.js"
38+
}
39+
},
40+
"./envelopes": {
41+
"import": "./lib/esm/envelopes.js",
42+
"require": "./lib/cjs/envelopes.js"
43+
},
44+
"./functions": {
45+
"import": "./lib/esm/PowertoolsFunctions.js",
46+
"require": "./lib/cjs/PowertoolsFunctions.js"
47+
},
48+
"./types": {
49+
"import": "./lib/esm/types.js",
50+
"require": "./lib/cjs/types.js"
51+
}
52+
},
53+
"typesVersions": {
54+
"*": {
55+
"envelopes": [
56+
"lib/cjs/envelopes.d.ts",
57+
"lib/esm/envelopes.d.ts"
58+
],
59+
"functions": [
60+
"lib/cjs/PowertoolsFunctions.d.ts",
61+
"lib/esm/PowertoolsFunctions.d.ts"
62+
],
63+
"types": [
64+
"lib/cjs/types.d.ts",
65+
"lib/esm/types.d.ts"
66+
]
67+
}
68+
},
69+
"types": "./lib/cjs/index.d.ts",
70+
"main": "./lib/cjs/index.js",
71+
"files": [
72+
"lib"
73+
],
74+
"dependencies": {
75+
"@aws-lambda-powertools/commons": "^2.0.2"
76+
},
77+
"repository": {
78+
"type": "git",
79+
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
80+
},
81+
"bugs": {
82+
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
83+
},
84+
"keywords": [
85+
"aws",
86+
"lambda",
87+
"powertools",
88+
"jmespath",
89+
"serverless",
90+
"typescript",
91+
"nodejs"
92+
]
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Powertools for AWS Lambda (TypeScript) variables

Diff for: packages/jmespath/tsconfig.esm.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../../tsconfig.esm.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "./lib/esm",
6+
"rootDir": "./src",
7+
"tsBuildInfoFile": ".tsbuildinfo/esm.json"
8+
},
9+
"include": [
10+
"./src/**/*"
11+
]
12+
}

Diff for: packages/jmespath/tsconfig.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./lib/cjs/",
5+
"rootDir": "./src",
6+
"tsBuildInfoFile": ".tsbuildinfo/cjs.json"
7+
},
8+
"include": [
9+
"./src/**/*"
10+
]
11+
}

Diff for: packages/jmespath/typedoc.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": [
3+
"../../typedoc.base.json"
4+
],
5+
"entryPoints": [
6+
"./src/index.ts",
7+
"./src/types.ts",
8+
"./src/envelopes.ts",
9+
"./src/PowertoolsFunctions.ts",
10+
],
11+
"readme": "README.md"
12+
}

0 commit comments

Comments
 (0)