]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nodejs/recipes/default.rb
Switch to using nodesource repos for nodejs
[chef.git] / cookbooks / nodejs / recipes / default.rb
index 0e616ea19db9c227b3dbd95e5810e7b3ab6825c8..1c610fe1b892d0ac9ec6bdd34b9e4bdb8c8c72a1 100644 (file)
@@ -1,8 +1,8 @@
 #
-# Cookbook Name:: nodejs
+# Cookbook:: nodejs
 # Recipe:: default
 #
-# Copyright 2013, OpenStreetMap Foundation
+# Copyright:: 2013, OpenStreetMap Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # limitations under the License.
 #
 
-package "nodejs"
-package "nodejs-legacy"
-package "npm"
-package "g++"
-package "make"
+include_recipe "apt::nodesource"
+include_recipe "apt::yarn"
+
+package %w[libnode72 npm yarnpkg] do
+  action :purge
+end
+
+package %w[
+  nodejs
+  yarn
+  g++
+  make
+]