File tree 5 files changed +954
-694
lines changed
5 files changed +954
-694
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ node_modules
4
4
dist
5
5
coverage
6
6
.idea
7
+ third_party
Original file line number Diff line number Diff line change 6
6
"typings" : " dist/index.d.ts" ,
7
7
"files" : [
8
8
" dist" ,
9
- " lib"
9
+ " lib" ,
10
+ " third_party"
10
11
],
11
12
"scripts" : {
12
13
"lint" : " prettier --write \" {lib,test}/**/*.ts\" " ,
14
+ "pretest" : " yarn clean && yarn patch-postcss" ,
13
15
"test" : " prettier --list-different \" {lib,test}/**/*.ts\" && jest --coverage" ,
14
- "build" : " rm -rf dist && tsc" ,
16
+ "clean" : " rm -rf dist third_party" ,
17
+ "patch-postcss" : " patch-package && mkdir -p third_party/postcss && cp -R node_modules/postcss third_party/" ,
18
+ "prebuild" : " yarn clean && yarn patch-postcss" ,
19
+ "build" : " ttsc" ,
15
20
"prepublishOnly" : " yarn build && conventional-changelog -p angular -r 2 -i CHANGELOG.md -s"
16
21
},
17
22
"gitHooks" : {
46
51
"jest" : " ^24.0.0" ,
47
52
"less" : " ^3.9.0" ,
48
53
"lint-staged" : " ^8.1.1" ,
54
+ "patch-package" : " ^6.4.7" ,
55
+ "postcss" : " ^7.0.35" ,
49
56
"pug" : " ^2.0.3" ,
50
57
"sass" : " ^1.17.3" ,
51
58
"stylus" : " ^0.54.5" ,
52
59
"ts-jest" : " ^24.0.0" ,
60
+ "ttypescript" : " ^1.5.12" ,
53
61
"typescript" : " ^3.3.0" ,
62
+ "typescript-transform-paths" : " ^2.2.4" ,
54
63
"vue" : " ^2.6.6" ,
55
64
"vue-template-compiler" : " ^2.6.6" ,
56
65
"yorkie" : " ^2.0.0"
60
69
"hash-sum" : " ^1.0.2" ,
61
70
"lru-cache" : " ^4.1.2" ,
62
71
"merge-source-map" : " ^1.1.0" ,
63
- "postcss" : " ^7.0.14" ,
64
72
"postcss-selector-parser" : " ^6.0.2" ,
65
73
"source-map" : " ~0.6.1" ,
66
74
"vue-template-es2015-compiler" : " ^1.9.0"
Original file line number Diff line number Diff line change
1
+ diff --git a/node_modules/postcss/lib/previous-map.js b/node_modules/postcss/lib/previous-map.js
2
+ index 49f99ad..ef0066d 100644
3
+ --- a/node_modules/postcss/lib/previous-map.js
4
+ +++ b/node_modules/postcss/lib/previous-map.js
5
+ @@ -86,11 +86,11 @@ var PreviousMap = /*#__PURE__*/function () {
6
+ };
7
+
8
+ _proto.getAnnotationURL = function getAnnotationURL(sourceMapString) {
9
+ - return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim();
10
+ + return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim()
11
+ };
12
+
13
+ _proto.loadAnnotation = function loadAnnotation(css) {
14
+ - var annotations = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//mg);
15
+ + var annotations = css.match(/\/\*\s*# sourceMappingURL=.*\*\//gm);
16
+
17
+ if (annotations && annotations.length > 0) {
18
+ // Locate the last sourceMappingURL to avoid picking up
Original file line number Diff line number Diff line change 17
17
"lib" : [
18
18
" es6" ,
19
19
" es7"
20
+ ],
21
+ "paths" : {
22
+ "postcss" : [" third_party/postcss" ]
23
+ },
24
+ "plugins" : [
25
+ { "transform" : " typescript-transform-paths" },
26
+ { "transform" : " typescript-transform-paths" , "afterDeclarations" : true }
20
27
]
21
28
},
22
29
"include" : [
You can’t perform that action at this time.
0 commit comments