Skip to content

Commit ae67a97

Browse files
committed
temporary remove nsp from publish hooks
https://github.com/nodesecurity/nsp/issues/218
1 parent 5165f8b commit ae67a97

File tree

4 files changed

+132
-92
lines changed

4 files changed

+132
-92
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"lint": "eslint src test",
3030
"test": "ava --require babel-core/register -T 7s test/index.js",
3131
"validate": "npm run lint && npm test",
32-
"prepare": "npm run build && npm run validate && npm run check"
32+
"prepare": "npm run build && npm run validate"
3333
},
3434
"author": {
3535
"name": "Alexander Ryzhikov",
@@ -64,7 +64,7 @@
6464
"eslint-plugin-promise": "^3.3.0",
6565
"eslint-plugin-standard": "^2.0.1",
6666
"memory-fs": "^0.4.1",
67-
"nsp": "^2.6.3",
67+
"nsp": "^3.1.0",
6868
"nyc": "^11.0.3",
6969
"pre-commit": "^1.1.3",
7070
"webpack": "^3.3.0",

test/fixtures/customMediaOrderWarnings.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@import './basic.css';
21
:root {
3-
--size: 10em;
42
--custom: 1;
53
}
64

test/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ test('emits warnings when custom-media and css variables are replaced', async t
8585

8686
t.true(warnings.length === 2)
8787
t.regex(
88-
warnings[0],
88+
warnings[0].split('\n')[1],
8989
/Existing exported CSS variable was replaced by @custom-media variable \[--custom]/
9090
)
9191
t.regex(
92-
warnings[1],
92+
warnings[1].split('\n')[1],
9393
/Existing exported @custom-media variable was replaced by CSS variable \[--small]/
9494
)
9595
})
@@ -111,11 +111,11 @@ test('emits warning for circular referenced custom media', async t => {
111111

112112
t.true(warnings.length === 2)
113113
t.regex(
114-
warnings[0],
114+
warnings[0].split('\n')[1],
115115
/Circular @custom-media definition for \[--a]. The entire rule has been removed from the output./
116116
)
117117
t.regex(
118-
warnings[1],
118+
warnings[1].split('\n')[1],
119119
/Circular @custom-media definition for \[--b]. The entire rule has been removed from the output./
120120
)
121121
})

0 commit comments

Comments
 (0)