mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
fix: test failure with shebang interpreter in rewired files (#939)
* breaking: remove shebang from create * breaking: remove shebang from version * breaking: remove shebang from logical files
This commit is contained in:
parent
c56cd4d5a8
commit
fb26050fab
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
15
bin/templates/cordova/Api.js
vendored
15
bin/templates/cordova/Api.js
vendored
@ -17,6 +17,15 @@
|
|||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @todo update coho to update this line.
|
||||||
|
* @todo use `package.json` instead but first
|
||||||
|
* figure out how this fit in with the platform-centered workflow structure.
|
||||||
|
* This workflow would not have the `package.json` file.
|
||||||
|
*/
|
||||||
|
// Coho updates this line
|
||||||
|
const VERSION = '9.0.0-dev';
|
||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
var AndroidProject = require('./lib/AndroidProject');
|
var AndroidProject = require('./lib/AndroidProject');
|
||||||
@ -88,7 +97,7 @@ class Api {
|
|||||||
result.locations = this.locations;
|
result.locations = this.locations;
|
||||||
result.root = this.root;
|
result.root = this.root;
|
||||||
result.name = this.platform;
|
result.name = this.platform;
|
||||||
result.version = require('./version');
|
result.version = Api.version();
|
||||||
result.projectConfig = this._config;
|
result.projectConfig = this._config;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -365,6 +374,10 @@ class Api {
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static version () {
|
||||||
|
return VERSION;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Api;
|
module.exports = Api;
|
||||||
|
2
bin/templates/cordova/lib/build.js
vendored
2
bin/templates/cordova/lib/build.js
vendored
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
2
bin/templates/cordova/lib/check_reqs.js
vendored
2
bin/templates/cordova/lib/check_reqs.js
vendored
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
2
bin/templates/cordova/lib/device.js
vendored
2
bin/templates/cordova/lib/device.js
vendored
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
2
bin/templates/cordova/lib/emulator.js
vendored
2
bin/templates/cordova/lib/emulator.js
vendored
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
2
bin/templates/cordova/lib/log.js
vendored
2
bin/templates/cordova/lib/log.js
vendored
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
2
bin/templates/cordova/lib/retry.js
vendored
2
bin/templates/cordova/lib/retry.js
vendored
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
2
bin/templates/cordova/lib/run.js
vendored
2
bin/templates/cordova/lib/run.js
vendored
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
@ -19,11 +19,6 @@
|
|||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Coho updates this line:
|
const Api = require('./Api');
|
||||||
var VERSION = '9.0.0-dev';
|
|
||||||
|
|
||||||
module.exports.version = VERSION;
|
console.log(Api.version());
|
||||||
|
|
||||||
if (!module.parent) {
|
|
||||||
console.log(VERSION);
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user