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:
エリス 2020-04-01 12:04:35 +09:00 committed by GitHub
parent c56cd4d5a8
commit fb26050fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 16 additions and 24 deletions

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View 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);
}