Skip to content

Commit

Permalink
Merge pull request #61 from monken/fix_cft_utils_aws_cdk_dependencies
Browse files Browse the repository at this point in the history
fix: moved cft-utils out to @znemz/cft-utils to seperate concerns
  • Loading branch information
monken authored May 28, 2024
2 parents 7ce3611 + 80f1c7b commit 8b02176
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 274 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
},
overrides: [
{
files: ['t/**/*.js', 'workspaces/**/*.test.js'],
files: ['t/**/*.js'],
plugins: ['mocha'],
env: {
mocha: true,
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const { addProxyToClient } = require('aws-sdk-v3-proxy');

const pathParse = require('path-parse');
const deepMerge = require('deepmerge');
const { isTaggableResource } = require('@cfn-include/utils/src/resources/taggable');
const { isTaggableResource } = require('@znemz/cft-utils/src/resources/taggable');

const request = require('./lib/request');
const PromiseExt = require('./lib/promise');

const S3 = (opts = {}) => addProxyToClient(new S3Client(opts));
const S3 = (opts = {}) => addProxyToClient(new S3Client(opts), { throwOnNoProxy: false });

const s3 = S3();
const yaml = require('./lib/yaml');
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,20 @@
"bin/",
"lib/"
],
"workspaces": [
"workspaces/*"
],
"scripts": {
"better-audit": "better-npm-audit audit",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepare": "sort-package-json",
"serve": "serve ./t/fixtures -l 9999",
"test": "npm run test:this && npm run test --workspaces",
"test": "npm run test:this",
"test:this": "run-p -r serve test:run",
"test:run": "sleep 1 && mocha --timeout 20000 --bail t/include.js t/cli.js t/replaceEnv.js"
},
"dependencies": {
"@aws-sdk/client-cloudformation": "^3",
"@aws-sdk/client-s3": "^3",
"@cfn-include/utils": "0.0.4",
"@znemz/cft-utils": "0.1.0",
"@znemz/sort-object": "^3.0.4",
"aws-sdk-v3-proxy": "2.1.2",
"bluebird": "^3.7.2",
Expand Down
4 changes: 2 additions & 2 deletions t/tests/applyTags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ applyTags:
Url: https://example.com
ClientIdList:
- !Ref RoleOne
# NOTE: This test could fail in future updates to @cfn-include/utils and aws-cdk-lib
# NOTE: This test could fail in future updates to @znemz/cft-utils and aws-cdk-lib
# Where resources become taggable upon aws-cdk-lib updates. If it becomes taggable and it wasn't
# thats a good thing.
output:
Expand Down Expand Up @@ -127,7 +127,7 @@ applyTags:
Url: https://example.com
ClientIdList:
- !Ref RoleOne
# NOTE: This test could fail in future updates to @cfn-include/utils and aws-cdk-lib
# NOTE: This test could fail in future updates to @znemz/cft-utils and aws-cdk-lib
# Where resources become taggable upon aws-cdk-lib updates. If it becomes taggable and it wasn't
# thats a good thing.
output:
Expand Down
39 changes: 0 additions & 39 deletions workspaces/utils/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions workspaces/utils/bin/taggableResourceMap.js

This file was deleted.

7 changes: 0 additions & 7 deletions workspaces/utils/bin/taggableResources.js

This file was deleted.

3 changes: 0 additions & 3 deletions workspaces/utils/debug.js

This file was deleted.

48 changes: 0 additions & 48 deletions workspaces/utils/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions workspaces/utils/src/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions workspaces/utils/src/resources/index.js

This file was deleted.

134 changes: 0 additions & 134 deletions workspaces/utils/src/resources/taggable.js

This file was deleted.

18 changes: 0 additions & 18 deletions workspaces/utils/src/resources/taggable.test.js

This file was deleted.

0 comments on commit 8b02176

Please sign in to comment.