@atomicsmash/init-testing 2.1.0 → 2.1.1-beta.0
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 +5 -7
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -103,6 +103,7 @@ for (const dirent of copyFiles) {
|
|
|
103
103
|
})
|
|
104
104
|
.catch((error) => `${relativePath}${dirent.name} failed to copy. Error: ${error}`));
|
|
105
105
|
}
|
|
106
|
+
const [nodeMajor, nodeMinor] = process.versions.node.split(".");
|
|
106
107
|
await Promise.all([
|
|
107
108
|
Promise.allSettled([
|
|
108
109
|
packageManager.ensurePackageIsInstalled("@atomicsmash/test-utils", {
|
|
@@ -130,13 +131,10 @@ await Promise.all([
|
|
|
130
131
|
packageConstraint: "^4.0.0",
|
|
131
132
|
type: "dev",
|
|
132
133
|
}),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
type: "dev",
|
|
138
|
-
});
|
|
139
|
-
},
|
|
134
|
+
packageManager.ensurePackageIsInstalled("@types/node", {
|
|
135
|
+
packageConstraint: `${nodeMajor}.${nodeMinor}.x`,
|
|
136
|
+
type: "dev",
|
|
137
|
+
}),
|
|
140
138
|
!hasRootTSConfig
|
|
141
139
|
? packageManager.ensurePackageIsInstalled("typescript", {
|
|
142
140
|
packageConstraint: "~5.8.0",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/init-testing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.0",
|
|
4
|
+
"version": "2.1.1-beta.0",
|
|
5
5
|
"description": "Allow us to easily add automated testing setup to any npm setup.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atomic",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"lint:types": "tsc"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"semver": "^7.7.
|
|
46
|
+
"semver": "^7.7.3",
|
|
47
47
|
"yargs": "^17.7.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/semver": "^7.7.
|
|
50
|
+
"@types/semver": "^7.7.1",
|
|
51
51
|
"@types/yargs": "^17.0.33"
|
|
52
52
|
}
|
|
53
53
|
}
|