Skip to content

Commit 23227bf

Browse files
dantmanandpor
authored andcommitted
Drop usage of the dead rnpm repository (#148)
`rnpm` has been replaced by `react-native link`, the `rnpm` package is no longer maintained and is out of sync with the code that actually calls postlink.
1 parent e61137b commit 23227bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"react-native": ">=0.14.0"
3434
},
3535
"dependencies": {
36-
"rnpm": "1.5.2",
3736
"xcode": "0.8.9"
3837
},
3938
"rnpm": {

scripts/rnpm-postlink.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
'use strict';
44

5+
require('react-native/setupBabel')();
56
var fs = require('fs');
6-
var rnpm = require('rnpm/src/config');
7+
var cli = require('react-native/local-cli/core');
78
var xcode = require('xcode');
89

910
// The current working directory should be project root of the app that is linking react-native-sqlite.
10-
var config = rnpm.getProjectConfig();
11+
var config = cli.getProjectConfig();
1112

1213
if (config.ios) {
1314
var pbxproj = config.ios.pbxprojPath;

0 commit comments

Comments
 (0)