     (c/with-pre-wrap [fileset]
       (let [diff (c/fileset-diff @prev fileset :hash)
             post-css (first (c/by-name ["run_postcss.js"] (c/input-files fileset)))
-            node-modules (first (c/by-re [#"^node_modules/stylus"
-                                          #"^node_modules/postcss"
-                                          #"^node_modules/postcss-modules"] (c/input-files fileset)))
+            node-modules (first (c/by-re [#"^node_modules"] (c/input-files fileset)))
             in-files (c/input-files diff)
             css (c/by-ext [".css"] (c/by-re [#"^node_modules"] in-files true))]
-        (println "postcss" post-css)
         (reset! prev fileset)
 
         (when (seq css)

        prev (atom nil)]
    (c/with-pre-wrap [fileset]
      (let [diff (c/fileset-diff @prev fileset :hash)
            stylus-exec (first (c/by-re [#"^node_modules/\.bin/stylus"] (c/input-files fileset)))
            _ (println "exec" stylus-exec)
            stylus (.getPath (c/tmp-file stylus-exec))
            in-files (c/input-files diff)
            styl-files (c/by-ext [".styl"] in-files)]
        ;(println "in-files" (doall (map #(.getPath (c/tmp-file %)) in-files)))
        (reset! prev fileset)
        (println "root" (.getPath tmp))

        ;; compile stylus into css
        (when (seq styl-files)

        (-> fs
            (c/add-source tmp)
            (c/commit!))))
    (npm/npm :install {:postcss "5.0.21"
                       :postcss-modules "0.5.0"
                       :stylus "0.54.5"}
             :cache-key ::cache)))

(deftask stylus
  "Compile all .styl files into clojure modules following css-modules syntax."
