esoftplay 0.0.135-a → 0.0.135-c
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/bin/build.js +7 -13
- package/bin/cli.js +12 -13
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -194,19 +194,13 @@ if (fs.existsSync(packjson)) {
|
|
|
194
194
|
})
|
|
195
195
|
|
|
196
196
|
const babelconf = `module.exports = function (api) {
|
|
197
|
-
api.cache(true);
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
plugins.push("react-native-reanimated/plugin")
|
|
206
|
-
return {
|
|
207
|
-
presets: ["babel-preset-expo"],
|
|
208
|
-
plugins
|
|
209
|
-
};
|
|
197
|
+
api.cache(true);
|
|
198
|
+
let plugins = []
|
|
199
|
+
plugins.push("react-native-reanimated/plugin")
|
|
200
|
+
return {
|
|
201
|
+
presets: ["babel-preset-expo"],
|
|
202
|
+
plugins
|
|
203
|
+
};
|
|
210
204
|
};
|
|
211
205
|
|
|
212
206
|
`
|
package/bin/cli.js
CHANGED
|
@@ -811,37 +811,36 @@ function buildPrepare(include = true) {
|
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
|
|
814
|
-
|
|
815
814
|
function configAvailable(enabled) {
|
|
816
815
|
if (fs.existsSync(gitignore)) {
|
|
817
816
|
let _git = fs.readFileSync(gitignore, 'utf8')
|
|
818
817
|
var ignore = "config.json"
|
|
819
|
-
var notignore =
|
|
818
|
+
var notignore = /\#{1,}config\.json/g
|
|
820
819
|
if (enabled) {
|
|
821
|
-
_git = _git.replace(ignore,
|
|
820
|
+
_git = _git.replace('\n' + ignore, '#' + ignore)
|
|
822
821
|
} else {
|
|
823
|
-
_git = _git.replace(notignore, ignore)
|
|
822
|
+
_git = _git.replace(new RegExp(notignore), ignore)
|
|
824
823
|
}
|
|
825
824
|
var ignore = "config.live.json"
|
|
826
|
-
var notignore =
|
|
825
|
+
var notignore = /\#{1,}config\.live\.json/g
|
|
827
826
|
if (enabled) {
|
|
828
|
-
_git = _git.replace(ignore,
|
|
827
|
+
_git = _git.replace('\n' + ignore, '#' + ignore)
|
|
829
828
|
} else {
|
|
830
|
-
_git = _git.replace(notignore, ignore)
|
|
829
|
+
_git = _git.replace(new RegExp(notignore), ignore)
|
|
831
830
|
}
|
|
832
831
|
var ignore = "config.debug.json"
|
|
833
|
-
var notignore =
|
|
832
|
+
var notignore = /\#{1,}config\.debug\.json/g
|
|
834
833
|
if (enabled) {
|
|
835
|
-
_git = _git.replace(ignore,
|
|
834
|
+
_git = _git.replace('\n' + ignore, '#' + ignore)
|
|
836
835
|
} else {
|
|
837
|
-
_git = _git.replace(notignore, ignore)
|
|
836
|
+
_git = _git.replace(new RegExp(notignore), ignore)
|
|
838
837
|
}
|
|
839
838
|
var ignore = "code-signing/"
|
|
840
|
-
var notignore =
|
|
839
|
+
var notignore = /\#{1,}code-signing\//g
|
|
841
840
|
if (enabled) {
|
|
842
|
-
_git = _git.replace(ignore,
|
|
841
|
+
_git = _git.replace('\n' + ignore, '#' + ignore)
|
|
843
842
|
} else {
|
|
844
|
-
_git = _git.replace(notignore, ignore)
|
|
843
|
+
_git = _git.replace(new RegExp(notignore), ignore)
|
|
845
844
|
}
|
|
846
845
|
fs.writeFileSync(gitignore, _git, { encoding: 'utf8' })
|
|
847
846
|
} else {
|