Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6a3c9a5

Browse files
feat(package.json): Codify supported Node.js in engines property (optimizely#143)
## Summary - Add [`engines`](https://docs.npmjs.com/files/package.json#engines) property, which will warn users if they `npm install` us and are on a ye olde Node.js version - Call this package's README the "homepage", rather than the one in the repo root which makes kind of a weird first impression - Delete extraneous word in package description ## Test plan Ran `>=4.0.0` through http://jubianchi.github.io/semver-check/ to make sure it allows/denies versions in the way I expect.
1 parent ff624de commit 6a3c9a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/optimizely-sdk/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@optimizely/optimizely-sdk",
33
"version": "2.1.1",
4-
"description": "JavaScript SDK package for Optimizely X Full Stack",
4+
"description": "JavaScript SDK for Optimizely X Full Stack",
55
"main": "lib/index.node.js",
66
"browser": "lib/index.browser.js",
77
"scripts": {
@@ -17,13 +17,16 @@
1717
"url": "git+https://github.com/optimizely/javascript-sdk.git"
1818
},
1919
"license": "Apache-2.0",
20+
"engines": {
21+
"node": ">=4.0.0"
22+
},
2023
"keywords": [
2124
"optimizely"
2225
],
2326
"bugs": {
2427
"url": "https://github.com/optimizely/javascript-sdk/issues"
2528
},
26-
"homepage": "https://github.com/optimizely/javascript-sdk#readme",
29+
"homepage": "https://github.com/optimizely/javascript-sdk/tree/master/packages/optimizely-sdk",
2730
"dependencies": {
2831
"json-schema": "^0.2.3",
2932
"lodash": "^4.0.0",

0 commit comments

Comments
 (0)