nitro-web 0.0.4 → 0.0.6
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/package.json +10 -2
- package/readme.md +1 -1
- package/semver-updater.cjs +12 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "nitro-web",
|
|
3
3
|
"description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
|
|
4
4
|
"repository": "github:boycce/nitro-web",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.6",
|
|
6
6
|
"main": "./client/index.js",
|
|
7
7
|
"types": "./types/client/index.d.ts",
|
|
8
8
|
"type": "module",
|
|
@@ -111,7 +111,15 @@
|
|
|
111
111
|
"skip": {
|
|
112
112
|
"changelog": true,
|
|
113
113
|
"tag": true
|
|
114
|
-
}
|
|
114
|
+
},
|
|
115
|
+
"bumpFiles": [
|
|
116
|
+
"package.json",
|
|
117
|
+
"package-lock.json",
|
|
118
|
+
{
|
|
119
|
+
"filename": "readme.md",
|
|
120
|
+
"updater": "./semver-updater.cjs"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
115
123
|
},
|
|
116
124
|
"jest": {
|
|
117
125
|
"transform": {}
|
package/readme.md
CHANGED
|
@@ -11,7 +11,7 @@ npm i nitro-web
|
|
|
11
11
|
### Install
|
|
12
12
|
|
|
13
13
|
1. Copy ./_example into your project
|
|
14
|
-
2. In package.json, replace `"nitro-web": "file:.."` with `"nitro-web": "^0.0.
|
|
14
|
+
2. In package.json, replace `"nitro-web": "file:.."` with `"nitro-web": "^0.0.6"`
|
|
15
15
|
3. In package.json, replace `"../.eslintrc.json"` with `"./node_modules/nitro-web/.eslintrc.json"`
|
|
16
16
|
4. Run `npm i`
|
|
17
17
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const versionRegex = /"nitro-web"\s*:\s*"([~^*><= -]*)([0-9.]+)"/
|
|
2
|
+
|
|
3
|
+
module.exports.readVersion = function (contents) {
|
|
4
|
+
const version = contents.match(versionRegex)?.[2]
|
|
5
|
+
return version
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
module.exports.writeVersion = function (contents, version) {
|
|
9
|
+
const oldVersion = contents.match(versionRegex)
|
|
10
|
+
if (!oldVersion[2]) return contents
|
|
11
|
+
else return contents.replace(versionRegex, `"nitro-web": "${oldVersion[1]}${version}"`)
|
|
12
|
+
}
|