@platformatic/generators 1.33.0 → 1.35.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/lib/base-generator.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/generators",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.1",
|
|
4
4
|
"description": "Main classes and utils for generators.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/inquirer": "^9.0.7",
|
|
19
|
-
"borp": "^0.
|
|
19
|
+
"borp": "^0.11.0",
|
|
20
20
|
"c8": "^9.1.0",
|
|
21
21
|
"snazzy": "^9.0.0",
|
|
22
22
|
"standard": "^17.1.0",
|
|
@@ -34,6 +34,7 @@ test('should write file and dirs', async (t) => {
|
|
|
34
34
|
const packageJson = JSON.parse(await readFile(join(dir, 'package.json'), 'utf8'))
|
|
35
35
|
assert.ok(packageJson.scripts)
|
|
36
36
|
assert.ok(packageJson.dependencies)
|
|
37
|
+
assert.equal(packageJson.dependencies.platformatic, undefined)
|
|
37
38
|
assert.ok(packageJson.engines)
|
|
38
39
|
|
|
39
40
|
assert.equal(packageJson.name, 'test-service')
|
|
@@ -770,7 +771,7 @@ test('should load data from directory', async (t) => {
|
|
|
770
771
|
assert.deepEqual(data, expected)
|
|
771
772
|
})
|
|
772
773
|
|
|
773
|
-
test
|
|
774
|
+
test('on update should just touch the packages configuration', async (t) => {
|
|
774
775
|
mockNpmJsRequestForPkgs(['@fastify/foo-plugin'])
|
|
775
776
|
const runtimeDirectory = join(__dirname, 'fixtures', 'sample-runtime', 'services', 'rival')
|
|
776
777
|
const dir = await moveToTmpdir(after)
|