@seagull/code-generators
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -21,2 +21,4 @@ "use strict"; | ||
'@types/react-router-dom': '^4.0.8', | ||
'aws-sdk': '^2.104.0', | ||
typescript: '^2.7.2', | ||
}); | ||
@@ -23,0 +25,0 @@ return gen; |
@@ -25,2 +25,8 @@ "use strict"; | ||
} | ||
'sets dev deps for the end user'() { | ||
const gen = _lib_1.generatePackageJson('demo', '0.1.2'); | ||
const code = gen.toString(); | ||
chai_1.expect(code).to.contain(`"aws-sdk": "^2.104.0"`); | ||
chai_1.expect(code).to.contain(`"typescript": "^2.7.2"`); | ||
} | ||
}; | ||
@@ -39,2 +45,8 @@ __decorate([ | ||
], CodegenPackageJsonTest.prototype, "name gets passed into file", null); | ||
__decorate([ | ||
mocha_typescript_1.test, | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", []), | ||
__metadata("design:returntype", void 0) | ||
], CodegenPackageJsonTest.prototype, "sets dev deps for the end user", null); | ||
CodegenPackageJsonTest = __decorate([ | ||
@@ -41,0 +53,0 @@ mocha_typescript_1.suite |
{ | ||
"name": "@seagull/code-generators", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Scaffolding capabilities and AST transforms for seagull apps", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -24,4 +24,6 @@ import { join } from 'path' | ||
'@types/react-router-dom': '^4.0.8', | ||
'aws-sdk': '^2.104.0', | ||
typescript: '^2.7.2', | ||
}) | ||
return gen | ||
} |
@@ -20,2 +20,10 @@ import { generatePackageJson } from '@lib' | ||
} | ||
@test | ||
'sets dev deps for the end user'() { | ||
const gen = generatePackageJson('demo', '0.1.2') | ||
const code = gen.toString() | ||
expect(code).to.contain(`"aws-sdk": "^2.104.0"`) | ||
expect(code).to.contain(`"typescript": "^2.7.2"`) | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1152193
2944