Skip to content

Commit 1abfce8

Browse files
committed
Update standard to v14.3.4
1 parent adb0be3 commit 1abfce8

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

fixtures/basic/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const fs = require('fs')
2+
const path = require('path')
23

3-
console.log(fs.readFileSync(__dirname + '/package.json', 'utf8'))
4+
console.log(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8'))

fixtures/errors/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const fs = require('fs')
2+
const path = require('path')
23

3-
console.log(fs.readFileSync(__dirname + '/package.json', 'utf8'))
4+
console.log(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8'))

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"glslify": "^6.1.0",
2525
"npm-which": "^2.0.0",
2626
"regl": "^1.3.0",
27-
"standard": "^5.4.1",
27+
"standard": "^14.3.4",
2828
"tap-spec": "^4.1.1",
2929
"tape": "^4.4.0",
3030
"through2": "^2.0.0",

test.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('ify-loader', function (t) {
2020
spawn(wpack, [
2121
input,
2222
output,
23-
'--module-bind', 'js=' + __dirname
23+
'--module-bind', 'js=' + path.resolve(__dirname)
2424
], {
2525
stdio: ['pipe', 'pipe', 2]
2626
}).once('exit', function () {
@@ -53,7 +53,7 @@ test('relative transforms', function (t) {
5353
spawn(wpack, [
5454
input,
5555
output,
56-
'--module-bind', 'js=' + __dirname
56+
'--module-bind', 'js=' + path.resolve(__dirname)
5757
], {
5858
stdio: ['pipe', 'pipe', 2]
5959
}).once('exit', function (code) {
@@ -76,7 +76,7 @@ test('error handling', function (t) {
7676
spawn(wpack, [
7777
input,
7878
output,
79-
'--module-bind', 'js=' + __dirname
79+
'--module-bind', 'js=' + path.resolve(__dirname)
8080
], {
8181
stdio: ['pipe', 'pipe', 2]
8282
}).once('exit', function (code) {
@@ -101,7 +101,7 @@ test('glsl-transform', function (t) {
101101
} catch (e) {}
102102

103103
spawn(wpack, [
104-
'--module-bind', 'js=' + __dirname,
104+
'--module-bind', 'js=' + path.resolve(__dirname),
105105
'--config',
106106
config
107107
], {
@@ -122,4 +122,3 @@ test('glsl-transform', function (t) {
122122
})
123123
})
124124
})
125-

0 commit comments

Comments
 (0)