File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 23
23
"scripts" : {
24
24
"build" : " pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files" ,
25
25
"build:node" : " node ../../scripts/build.mjs node" ,
26
- "build:stable" : " node ../../scripts/build.mjs stable" ,
27
- "build:types" : " tsx ../../scripts/buildTypes.mts" ,
28
- "build:copy-files" : " node ../../scripts/copyFiles.mjs" ,
26
+ "build:stable" : " MUI_EXPERIMENTAL_MJS=true node ../../scripts/build.mjs stable" ,
27
+ "build:types" : " MUI_EXPERIMENTAL_MJS=true tsx ../../scripts/buildTypes.mts" ,
28
+ "build:copy-files" : " MUI_EXPERIMENTAL_MJS=true node ../../scripts/copyFiles.mjs" ,
29
29
"prebuild" : " rimraf build" ,
30
30
"release" : " pnpm build && pnpm publish" ,
31
31
"test" : " echo 'No runtime test. Type tests are run with the `typescript` script.'" ,
Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ async function run(argv) {
105
105
const command = [ 'pnpm babel' , ...babelArgs ] . join ( ' ' ) ;
106
106
107
107
if ( verbose ) {
108
- // eslint-disable-next-line no-console
109
108
console . log ( `running '${ command } ' with ${ JSON . stringify ( env ) } ` ) ;
110
109
}
111
110
@@ -131,7 +130,6 @@ async function run(argv) {
131
130
}
132
131
133
132
if ( verbose ) {
134
- // eslint-disable-next-line no-console
135
133
console . log ( stdout ) ;
136
134
}
137
135
}
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import path from 'path';
4
4
import yargs from 'yargs' ;
5
5
import { $ } from 'execa' ;
6
6
import * as babel from '@babel/core' ;
7
- import { parse } from 'jsonc-parser' ;
8
7
9
8
const $$ = $ ( { stdio : 'inherit' } ) ;
10
9
@@ -84,7 +83,9 @@ async function renameDtsFilesToDmts(sourceDirectory: string) {
84
83
await Promise . all (
85
84
dtsFiles . map ( async ( dtsFile ) => {
86
85
const mtsFile = dtsFile . replace ( / \. d \. t s $ / , '.d.mts' ) ;
87
- await fs . rename ( dtsFile , mtsFile ) ;
86
+ // @TODO - Fix this. Temporarily maintaining both .d.ts and .d.mts files to avoid issues with parent packages that
87
+ // expect .d.ts files to be present.
88
+ await fs . copyFile ( dtsFile , mtsFile ) ;
88
89
} ) ,
89
90
) ;
90
91
}
@@ -108,7 +109,7 @@ async function main(argv: HandlerArgv) {
108
109
const esmDir = path . join ( buildFolder , 'esm' ) ;
109
110
const cjsDir = path . join ( buildFolder , argv . cjsDir ) ;
110
111
111
- await copyDeclarations ( srcPath , esmDir ) ;
112
+ await copyDeclarations ( srcPath , cjsDir ) ;
112
113
113
114
if ( ! argv . skipTsc ) {
114
115
if ( ! tsconfigExists ) {
You can’t perform that action at this time.
0 commit comments