@@ -55,7 +55,7 @@ fn it_recognizes_a_map_during_depcheck() {
55
55
fn it_creates_a_package_json_default_path ( ) {
56
56
let fixture = utils:: fixture ( "." ) ;
57
57
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
58
- wasm_pack:: command:: init :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
58
+ wasm_pack:: command:: utils :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
59
59
assert ! ( manifest:: write_package_json( & fixture. path, & None , false , "" , & step) . is_ok( ) ) ;
60
60
let package_json_path = & fixture. path . join ( "pkg" ) . join ( "package.json" ) ;
61
61
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
@@ -83,7 +83,7 @@ fn it_creates_a_package_json_default_path() {
83
83
fn it_creates_a_package_json_provided_path ( ) {
84
84
let fixture = utils:: fixture ( "tests/fixtures/js-hello-world" ) ;
85
85
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
86
- wasm_pack:: command:: init :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
86
+ wasm_pack:: command:: utils :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
87
87
assert ! ( manifest:: write_package_json( & fixture. path, & None , false , "" , & step) . is_ok( ) ) ;
88
88
let package_json_path = & fixture. path . join ( "pkg" ) . join ( "package.json" ) ;
89
89
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
@@ -104,7 +104,7 @@ fn it_creates_a_package_json_provided_path() {
104
104
fn it_creates_a_package_json_provided_path_with_scope ( ) {
105
105
let fixture = utils:: fixture ( "tests/fixtures/scopes" ) ;
106
106
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
107
- wasm_pack:: command:: init :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
107
+ wasm_pack:: command:: utils :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
108
108
assert ! (
109
109
manifest:: write_package_json( & fixture. path, & Some ( "test" . to_string( ) ) , false , "" , & step)
110
110
. is_ok( )
@@ -128,7 +128,7 @@ fn it_creates_a_package_json_provided_path_with_scope() {
128
128
fn it_creates_a_pkg_json_with_correct_files_on_node ( ) {
129
129
let fixture = utils:: fixture ( "." ) ;
130
130
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
131
- wasm_pack:: command:: init :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
131
+ wasm_pack:: command:: utils :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
132
132
assert ! ( manifest:: write_package_json( & fixture. path, & None , false , "nodejs" , & step) . is_ok( ) ) ;
133
133
let package_json_path = & fixture. path . join ( "pkg" ) . join ( "package.json" ) ;
134
134
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
@@ -157,7 +157,7 @@ fn it_creates_a_pkg_json_with_correct_files_on_node() {
157
157
fn it_creates_a_package_json_with_correct_keys_when_types_are_skipped ( ) {
158
158
let fixture = utils:: fixture ( "." ) ;
159
159
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
160
- wasm_pack:: command:: init :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
160
+ wasm_pack:: command:: utils :: create_pkg_dir ( & fixture. path , & step) . unwrap ( ) ;
161
161
assert ! ( manifest:: write_package_json( & fixture. path, & None , true , "" , & step) . is_ok( ) ) ;
162
162
let package_json_path = & fixture. path . join ( "pkg" ) . join ( "package.json" ) ;
163
163
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
0 commit comments