@cloud-copilot/iam-lens 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-copilot/iam-lens",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Visibility in IAM in and across AWS accounts",
5
5
  "keywords": [
6
6
  "aws",
@@ -9,20 +9,16 @@
9
9
  "identity"
10
10
  ],
11
11
  "homepage": "https://github.com/cloud-copilot/iam-lens#readme",
12
- "devDependencies": {
13
- "@cloud-copilot/prettier-config": "^0.1.0",
14
- "@semantic-release/changelog": "^6.0.3",
15
- "@semantic-release/commit-analyzer": "^13.0.1",
16
- "@semantic-release/git": "^10.0.1",
17
- "@semantic-release/github": "^11.0.1",
18
- "@semantic-release/npm": "^12.0.1",
19
- "@semantic-release/release-notes-generator": "^14.0.3",
20
- "@types/node": "^22.5.0",
21
- "@vitest/coverage-v8": "^3.0.7",
22
- "semantic-release": "^24.2.1",
23
- "typescript": "^5.7.2",
24
- "vitest": "^3.0.7"
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ }
25
17
  },
18
+ "files": [
19
+ "dist/**/*"
20
+ ],
21
+ "types": "dist/cjs/index.d.ts",
26
22
  "prettier": "@cloud-copilot/prettier-config",
27
23
  "bugs": {
28
24
  "url": "https://github.com/cloud-copilot/iam-lens/issues"
@@ -32,9 +28,7 @@
32
28
  "url": "git+https://github.com/cloud-copilot/iam-lens.git"
33
29
  },
34
30
  "license": "AGPL-3.0-or-later",
35
- "author": "Cloud Copilot",
36
- "type": "commonjs",
37
- "main": "dist/esm/index.js",
31
+ "author": "David Kerber <dave@cloudcopilot.io>",
38
32
  "scripts": {
39
33
  "build": "npx tsc -p tsconfig.cjs.json && npx tsc -p tsconfig.esm.json && ./postbuild.sh",
40
34
  "clean": "rm -rf dist",
@@ -42,5 +36,74 @@
42
36
  "release": "npm install && npm run clean && npm run build && npm test && npm run format-check && npm publish",
43
37
  "format": "npx prettier --write src/",
44
38
  "format-check": "npx prettier --check src/"
39
+ },
40
+ "devDependencies": {
41
+ "@cloud-copilot/prettier-config": "^0.1.0",
42
+ "@semantic-release/changelog": "^6.0.3",
43
+ "@semantic-release/commit-analyzer": "^13.0.1",
44
+ "@semantic-release/git": "^10.0.1",
45
+ "@semantic-release/github": "^11.0.1",
46
+ "@semantic-release/npm": "^12.0.1",
47
+ "@semantic-release/release-notes-generator": "^14.0.3",
48
+ "@types/node": "^22.5.0",
49
+ "@vitest/coverage-v8": "^3.0.7",
50
+ "semantic-release": "^24.2.1",
51
+ "typescript": "^5.7.2",
52
+ "vitest": "^3.0.7"
53
+ },
54
+ "release": {
55
+ "branches": [
56
+ "main"
57
+ ],
58
+ "plugins": [
59
+ [
60
+ "@semantic-release/commit-analyzer",
61
+ {
62
+ "releaseRules": [
63
+ {
64
+ "type": "feat",
65
+ "release": "patch"
66
+ },
67
+ {
68
+ "type": "fix",
69
+ "release": "patch"
70
+ },
71
+ {
72
+ "breaking": true,
73
+ "release": "patch"
74
+ },
75
+ {
76
+ "type": "*",
77
+ "release": "patch"
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "@semantic-release/release-notes-generator",
83
+ "@semantic-release/changelog",
84
+ [
85
+ "@semantic-release/npm",
86
+ {
87
+ "npmPublish": true
88
+ }
89
+ ],
90
+ [
91
+ "@semantic-release/git",
92
+ {
93
+ "assets": [
94
+ "package.json",
95
+ "package-lock.json",
96
+ "CHANGELOG.md"
97
+ ],
98
+ "message": "chore(release): ${nextRelease.version} [skip ci]"
99
+ }
100
+ ],
101
+ [
102
+ "@semantic-release/github",
103
+ {
104
+ "assets": []
105
+ }
106
+ ]
107
+ ]
45
108
  }
46
109
  }
@@ -1,31 +0,0 @@
1
- name: GuardDog
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- workflow_dispatch:
8
-
9
- permissions:
10
- contents: read
11
-
12
- jobs:
13
- guarddog:
14
- permissions:
15
- contents: read
16
- name: Scan Dependencies and Source Code
17
- runs-on: ubuntu-latest
18
-
19
- steps:
20
- - uses: actions/checkout@v4
21
-
22
- - name: Set up Python
23
- uses: actions/setup-python@v5
24
- with:
25
- python-version: '3.10'
26
-
27
- - name: Install GuardDog
28
- run: pip install guarddog
29
-
30
- - run: guarddog npm scan src/ --exit-non-zero-on-finding
31
- # - run: guarddog npm verify package.json --exclude-rules empty_information --exit-non-zero-on-finding
@@ -1,101 +0,0 @@
1
- name: 'Lint PR'
2
-
3
- on:
4
- pull_request_target:
5
- types:
6
- - opened
7
- - edited
8
- - synchronize
9
- - reopened
10
-
11
- permissions:
12
- contents: read
13
-
14
- jobs:
15
- main:
16
- name: Validate PR title
17
- runs-on: ubuntu-latest
18
- steps:
19
- - uses: amannn/action-semantic-pull-request@v5
20
- env:
21
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22
-
23
- lint:
24
- name: Code Formatting Check
25
- runs-on: ubuntu-latest
26
- steps:
27
- - name: Check out the repository
28
- uses: actions/checkout@v4
29
- with:
30
- ref: ${{ github.event.pull_request.head.sha }}
31
-
32
- - name: Set up Node
33
- uses: actions/setup-node@v4
34
- with:
35
- node-version: '22'
36
-
37
- - name: Install dependencies
38
- run: npm ci
39
-
40
- - name: Check Code Formatting
41
- run: npm run format-check
42
-
43
- test:
44
- name: Build and Test
45
- runs-on: ubuntu-latest
46
- steps:
47
- - name: Check out the repository
48
- uses: actions/checkout@v4
49
- with:
50
- ref: ${{ github.event.pull_request.head.sha }}
51
-
52
- - name: Set up Node
53
- uses: actions/setup-node@v4
54
- with:
55
- node-version: '22'
56
-
57
- - name: Install dependencies
58
- run: npm ci
59
-
60
- - name: Build
61
- run: npm run build
62
-
63
- - name: Check Tests
64
- run: npm test
65
-
66
- guarddog:
67
- permissions:
68
- contents: read
69
- name: GuardDog Check
70
- runs-on: ubuntu-latest
71
-
72
- steps:
73
- - name: Check out the repository
74
- uses: actions/checkout@v4
75
- with:
76
- ref: ${{ github.event.pull_request.head.sha }}
77
- fetch-depth: 0
78
-
79
- - name: Set up Python
80
- uses: actions/setup-python@v5
81
- with:
82
- python-version: '3.10'
83
-
84
- - name: Install GuardDog
85
- run: pip install guarddog
86
-
87
- - name: Run GuardDog scan on src
88
- run: guarddog npm scan src/ --exit-non-zero-on-finding
89
-
90
- # - name: Check if package.json changed
91
- # id: package_check
92
- # run: |
93
- # if git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} | grep -q '^package\.json$'; then
94
- # echo "changed=true" >> $GITHUB_OUTPUT
95
- # else
96
- # echo "changed=false" >> $GITHUB_OUTPUT
97
- # fi
98
-
99
- # - name: Conditionally run verify on package.json
100
- # if: steps.package_check.outputs.changed == 'true'
101
- # run: guarddog npm verify package.json --exclude-rules empty_information --exit-non-zero-on-finding
@@ -1,16 +0,0 @@
1
- name: Update Dependencies
2
-
3
- on:
4
- schedule:
5
- - cron: '0 12 * * 6' # Every Saturday at 12:00 PM UTC
6
- workflow_dispatch:
7
-
8
- jobs:
9
- update-dependencies:
10
- runs-on: ubuntu-latest
11
- permissions:
12
- contents: write # Push branches
13
- pull-requests: write # Create PRs
14
- steps:
15
- - name: Run dependency update
16
- uses: cloud-copilot/update-dependencies@main
package/postbuild.sh DELETED
@@ -1,12 +0,0 @@
1
- cat >dist/cjs/package.json <<!EOF
2
- {
3
- "type": "commonjs"
4
- }
5
- !EOF
6
- rm -rf dist/cjs/utils/readPackageFileEsm.*
7
-
8
- cat >dist/esm/package.json <<!EOF
9
- {
10
- "type": "module"
11
- }
12
- !EOF
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- console.log('Hello, world!')
package/tsconfig.cjs.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": ["**/*.test.ts"],
6
-
7
- "compilerOptions": {
8
- "rootDir": "src",
9
- "outDir": "dist/cjs",
10
- }
11
- }
package/tsconfig.esm.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": ["**/*.test.ts"],
6
-
7
- "compilerOptions": {
8
- "target": "ES2020",
9
- "module": "ES2020",
10
- "moduleResolution": "node",
11
- "rootDir": "src",
12
- "outDir": "dist/esm"
13
- }
14
- }
package/tsconfig.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "commonjs",
4
- "target": "es2022",
5
- "outDir": "dist",
6
- "rootDir": "src",
7
- "sourceMap": true,
8
- "strict": true,
9
- "declaration": true,
10
- "declarationMap": true,
11
- "lib": ["es2023", "DOM"],
12
- "noUnusedLocals": false,
13
- "noUnusedParameters": false,
14
- "noImplicitReturns": true,
15
- "noFallthroughCasesInSwitch": false,
16
- "experimentalDecorators": true,
17
- "emitDecoratorMetadata": true,
18
- "esModuleInterop": false,
19
- "forceConsistentCasingInFileNames": true,
20
- },
21
- "exclude": ["tests", "test", "dist", "bin", "**/bin", "**/dist", "node_modules", "cdk.out"]
22
- }