@@ -48,7 +48,7 @@ fn it_checks_has_cdylib_wrong_crate_type() {
48
48
fn it_creates_a_package_json_default_path ( ) {
49
49
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
50
50
let path = "." . to_string ( ) ;
51
- wasm_pack:: command:: init :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
51
+ wasm_pack:: command:: utils :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
52
52
assert ! ( manifest:: write_package_json( & path, & None , false , "" , & step) . is_ok( ) ) ;
53
53
let package_json_path = format ! ( "{}/pkg/package.json" , & path) ;
54
54
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
@@ -76,7 +76,7 @@ fn it_creates_a_package_json_default_path() {
76
76
fn it_creates_a_package_json_provided_path ( ) {
77
77
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
78
78
let path = "tests/fixtures/js-hello-world" . to_string ( ) ;
79
- wasm_pack:: command:: init :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
79
+ wasm_pack:: command:: utils :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
80
80
assert ! ( manifest:: write_package_json( & path, & None , false , "" , & step) . is_ok( ) ) ;
81
81
let package_json_path = format ! ( "{}/pkg/package.json" , & path) ;
82
82
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
@@ -97,7 +97,7 @@ fn it_creates_a_package_json_provided_path() {
97
97
fn it_creates_a_package_json_provided_path_with_scope ( ) {
98
98
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
99
99
let path = "tests/fixtures/scopes" . to_string ( ) ;
100
- wasm_pack:: command:: init :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
100
+ wasm_pack:: command:: utils :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
101
101
assert ! (
102
102
manifest:: write_package_json( & path, & Some ( "test" . to_string( ) ) , false , "" , & step) . is_ok( )
103
103
) ;
@@ -120,7 +120,7 @@ fn it_creates_a_package_json_provided_path_with_scope() {
120
120
fn it_creates_a_pkg_json_with_correct_files_on_node ( ) {
121
121
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
122
122
let path = "." . to_string ( ) ;
123
- wasm_pack:: command:: init :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
123
+ wasm_pack:: command:: utils :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
124
124
assert ! ( manifest:: write_package_json( & path, & None , false , "nodejs" , & step) . is_ok( ) ) ;
125
125
let package_json_path = format ! ( "{}/pkg/package.json" , & path) ;
126
126
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
@@ -149,7 +149,7 @@ fn it_creates_a_pkg_json_with_correct_files_on_node() {
149
149
fn it_creates_a_package_json_with_correct_keys_when_types_are_skipped ( ) {
150
150
let step = wasm_pack:: progressbar:: Step :: new ( 1 ) ;
151
151
let path = "." . to_string ( ) ;
152
- wasm_pack:: command:: init :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
152
+ wasm_pack:: command:: utils :: create_pkg_dir ( & path, & step) . unwrap ( ) ;
153
153
assert ! ( manifest:: write_package_json( & path, & None , true , "" , & step) . is_ok( ) ) ;
154
154
let package_json_path = format ! ( "{}/pkg/package.json" , & path) ;
155
155
assert ! ( fs:: metadata( package_json_path) . is_ok( ) ) ;
0 commit comments