@ttoss/appsync-api 0.3.0 → 0.3.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/dist/cli.js +3690 -1
- package/dist/esm/chunk-ZDHV6GQI.js +4494 -0
- package/dist/esm/cli.js +3 -1
- package/dist/esm/index.js +3 -244
- package/dist/index.js +4240 -15
- package/package.json +4 -3
- package/src/cli.ts +1 -8
- package/src/createApiTemplate.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/appsync-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -29,11 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@ttoss/config": "^1.25.0",
|
|
32
|
-
"@types/aws-lambda": "^8.10.109"
|
|
32
|
+
"@types/aws-lambda": "^8.10.109",
|
|
33
|
+
"carlin": "^1.21.0"
|
|
33
34
|
},
|
|
34
35
|
"keywords": [],
|
|
35
36
|
"publishConfig": {
|
|
36
37
|
"access": "public"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a5396840d88867e223247b3fc87188a174c147c7"
|
|
39
40
|
}
|
package/src/cli.ts
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
// import { AppSyncGraphQLSchemaLogicalId } from './createApiTemplate';
|
|
2
1
|
import * as fs from 'fs';
|
|
2
|
+
import { AppSyncGraphQLSchemaLogicalId } from './createApiTemplate';
|
|
3
3
|
import { findAndReadCloudFormationTemplate } from '@ttoss/cloudformation';
|
|
4
4
|
import minimist from 'minimist';
|
|
5
5
|
|
|
6
6
|
const argv = minimist(process.argv.slice(2));
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* TODO: fix Error: Cannot find module 'carlin/src/deploy/lambdaLayer/getPackageLambdaLayerStackName'
|
|
10
|
-
* passing all carlin cloudformation methods to @ttoss/cloudformation and
|
|
11
|
-
* import AppSyncGraphQLSchemaLogicalId from './createApiTemplate';
|
|
12
|
-
*/
|
|
13
|
-
const AppSyncGraphQLSchemaLogicalId = 'AppSyncGraphQLSchema';
|
|
14
|
-
|
|
15
8
|
if (argv._.includes('build-schema')) {
|
|
16
9
|
const template = findAndReadCloudFormationTemplate({});
|
|
17
10
|
|
package/src/createApiTemplate.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { SchemaComposer } from 'graphql-compose';
|
|
|
6
6
|
|
|
7
7
|
const AppSyncGraphQLApiLogicalId = 'AppSyncGraphQLApi';
|
|
8
8
|
|
|
9
|
-
const AppSyncGraphQLSchemaLogicalId = 'AppSyncGraphQLSchema';
|
|
9
|
+
export const AppSyncGraphQLSchemaLogicalId = 'AppSyncGraphQLSchema';
|
|
10
10
|
|
|
11
11
|
const AppSyncLambdaFunctionIAMRoleLogicalId = 'AppSyncLambdaFunctionIAMRole';
|
|
12
12
|
|