rapidkit 0.22.0 → 0.23.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/index.d.ts +6 -1
- package/dist/index.js +209 -196
- package/dist/package.json +2 -1
- package/package.json +3 -2
- package/scripts/enforce-package-manager.cjs +10 -0
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rapidkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Create RapidKit projects with a single command - The official CLI for RapidKit framework",
|
|
6
6
|
"keywords": [
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"rapidkit": "dist/index.js"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
|
-
"dist"
|
|
27
|
+
"dist",
|
|
28
|
+
"scripts/enforce-package-manager.cjs"
|
|
28
29
|
],
|
|
29
30
|
"scripts": {
|
|
30
31
|
"preinstall": "node scripts/enforce-package-manager.cjs",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const userAgent = process.env.npm_config_user_agent || '';
|
|
4
|
+
const usingNpm = userAgent.startsWith('npm/');
|
|
5
|
+
|
|
6
|
+
if (!usingNpm) {
|
|
7
|
+
console.error('❌ rapidkit-npm uses npm as the only supported package manager for development.');
|
|
8
|
+
console.error('Please run: npm install');
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|