nodejs-requirejs/0001-fix-package.json-make-the-rpm-can-provides-npm-requi.patch

48 lines
1.3 KiB
Diff
Raw Normal View History

From acd254fc434874d6a5d9600922a5455e1b743cf2 Mon Sep 17 00:00:00 2001
2020-09-11 09:06:26 +08:00
From: wangxiao <wangxiao65@huawei.com>
Date: Wed, 9 Sep 2020 16:16:55 +0800
Subject: [PATCH] fix package.json, make the rpm can provides npm(requirejs)
---
package.json | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index a4f0e80..c4f4583 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,28 @@
{
- "volo": {
- "url": "https://raw.github.com/jrburke/r.js/{version}/dist/r.js"
+ "name": "requirejs",
+ "description": "Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer",
+ "version": "2.1.11",
+ "homepage": "http://github.com/jrburke/r.js",
+ "author": "James Burke <jrburke@gmail.com> (http://github.com/jrburke)",
+ "licenses": [
+ {
+ "type": "BSD",
+ "url": "https://github.com/jrburke/r.js/blob/master/LICENSE"
+ },
+ {
+ "type": "MIT",
+ "url": "https://github.com/jrburke/r.js/blob/master/LICENSE"
+ }
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/jrburke/r.js.git"
+ },
+ "main": "./bin/r.js",
+ "bin": {
+ "r.js": "./bin/r.js"
+ },
+ "engines": {
+ "node": ">=0.4.0"
}
}
--
2.23.0