Commit da20429

Anton Medvedev <anton@medv.io>
2022-06-05 12:16:53
Code style
1 parent 943dd3d
src/experimental.ts
@@ -12,9 +12,8 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import { ProcessOutput, $ } from './core.js'
+import { $ } from './core.js'
 import { sleep } from './goods.js'
-import { isString } from './util.js'
 
 // Retries a command a few times. Will return after the first
 // successful attempt, or will throw after specifies attempts count.
test/fixtures/filename-dirname.mjs
@@ -1,3 +1,17 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 import { strict } from 'assert'
 
 strict.equal(path.basename(__filename), 'filename-dirname.mjs')
test/fixtures/no-extension.mjs
@@ -1,1 +1,15 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 // Test file to verify no-extension didn't overwrite similarly name .mjs file.
test/fixtures/require.mjs
@@ -1,3 +1,17 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 import { strict as assert } from 'assert'
 let data = require('../../package.json')
 assert.equal(data.name, 'zx')
test/package.test.js
@@ -44,7 +44,10 @@ pack('zx globals works', async () => {
 })
 
 pack('imports works', async () => {
-  fs.writeFileSync('/tmp/zx-pack-test/script.mjs', 'import {$} from "zx"; await $`printf imported`')
+  fs.writeFileSync(
+    '/tmp/zx-pack-test/script.mjs',
+    'import {$} from "zx"; await $`printf imported`'
+  )
   let out = await $`node script.mjs`
   assert.match(out.toString(), 'imported')
 })