File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " authorization-management-component" ,
3
3
"version" : " 0.1.1" ,
4
4
"private" : true ,
5
+ "type" : " module" ,
5
6
"scripts" : {
6
7
"build" : " next build" ,
7
8
"prepare:e2e" : " cd e2e/test-app ; npm ci; npm run build" ,
17
18
"start" : " next start" ,
18
19
"test" : " TZ=UTC jest --runInBand" ,
19
20
"test:e2e" : " playwright test" ,
20
- "update-clientId" : " npm ci && npx ts- node --skip-project scripts/updateClientId.ts" ,
21
+ "update-clientId" : " npm ci && node --experimental-specifier-resolution= node --loader ts-node/esm/transpile-only scripts/updateClientId.ts" ,
21
22
"bump-version" : " changeset add" ,
22
23
"version" : " changeset version" ,
23
24
"release" : " changeset publish" ,
24
- "preparePurposes" : " npx ts- node --skip-project scripts/preparePurposes.ts"
25
+ "preparePurposes" : " node --experimental-specifier-resolution= node --loader ts-node/esm/transpile-only scripts/preparePurposes.ts"
25
26
},
26
27
"dependencies" : {
27
28
"@changesets/changelog-github" : " ^0.5.0" ,
Original file line number Diff line number Diff line change 19
19
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
//
21
21
import fs from "fs" ;
22
- import path from "path" ;
22
+ import path , { dirname } from "path" ;
23
+ import { fileURLToPath } from "url" ;
23
24
import { addToCache , defaultUrls } from "../src/session/PurposeCache" ;
24
25
26
+ const __filename = fileURLToPath ( import . meta. url ) ;
27
+ const __dirname = dirname ( __filename ) ;
28
+
25
29
// Undici struggles to follow these redirects for some reason,
26
30
// but the browser handles it fine
27
31
const redirected = {
@@ -52,6 +56,6 @@ async function main() {
52
56
}
53
57
54
58
main ( ) . catch ( ( e ) => {
55
- console . log ( "Error occured preparing purposes" , e ) ;
59
+ console . log ( "Error occurred preparing purposes" , e ) ;
56
60
process . exit ( 1 ) ;
57
61
} ) ;
You can’t perform that action at this time.
0 commit comments