File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 "@babel/preset-env" : " ^7.24.0" ,
5959 "@babel/preset-react" : " ^7.24.0" ,
6060 "@babel/preset-typescript" : " ^7.0.0" ,
61- "@drawbotics/s3sync" : " ^1 .0.1 " ,
62- "@drawbotics/use-screen-size" : " ^3.0.1 " ,
61+ "@drawbotics/s3sync" : " ^2 .0.0 " ,
62+ "@drawbotics/use-screen-size" : " ^3.1.0 " ,
6363 "@emotion/babel-plugin" : " ^11.13.5" ,
6464 "@emotion/jest" : " ^11.14.0" ,
6565 "@mdx-js/loader" : " ^1.6.21" ,
Original file line number Diff line number Diff line change 1313 "clean" : " rimraf dist/ tmp/" ,
1414 "build:ts" : " tsc" ,
1515 "build" : " npm run clean && npm run build:ts && node scripts/build.js" ,
16- "sync" : " node scripts/sync.js " ,
16+ "sync" : " node scripts/sync.mjs " ,
1717 "build:dev" : " npm run build && NODE_ENV=development npm run sync" ,
1818 "prepublishOnly" : " npm run build && NODE_ENV=production npm run sync"
1919 },
Original file line number Diff line number Diff line change 1- const path = require ( 'path' ) ;
2- const s3sync = require ( '@drawbotics/s3sync' ) ;
1+ /* global process */
2+ import path from 'path' ;
3+ import { fileURLToPath } from 'url' ;
4+ import s3sync from '@drawbotics/s3sync' ;
5+ import { createRequire } from 'module' ;
6+
7+ const require = createRequire ( import . meta. url ) ;
8+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
39
410const version = require ( '../package.json' ) . version ;
511
Original file line number Diff line number Diff line change 2323 "generate-fonts" : " webfont ./icons/*.svg --dest ./dist --template css --template-class-name drycon --font-name drycons --font-height 150" ,
2424 "build:fonts" : " node scripts/build.js" ,
2525 "build" : " npm run clean && mkdir dist && npm run build:fonts" ,
26- "sync" : " node scripts/sync.js " ,
26+ "sync" : " node scripts/sync.mjs " ,
2727 "build:dev" : " npm run build && NODE_ENV=development npm run sync" ,
2828 "prepublishOnly" : " npm run build && NODE_ENV=production npm run sync"
2929 },
Original file line number Diff line number Diff line change 1- const path = require ( 'path' ) ;
2- const s3sync = require ( '@drawbotics/s3sync' ) ;
3- const { CloudFrontClient, CreateInvalidationCommand } = require ( '@aws-sdk/client-cloudfront' ) ;
1+ /* global process, console */
2+ import path from 'path' ;
3+ import { fileURLToPath } from 'url' ;
4+ import s3sync from '@drawbotics/s3sync' ;
5+ import { CloudFrontClient , CreateInvalidationCommand } from '@aws-sdk/client-cloudfront' ;
6+ import { createRequire } from 'module' ;
7+
8+ const require = createRequire ( import . meta. url ) ;
9+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
410
511const version = require ( '../package.json' ) . version ;
612const cloudfront = new CloudFrontClient ( { region : 'eu-west-1' } ) ;
Original file line number Diff line number Diff line change 6666 "dependencies" : {
6767 "@drawbotics/drylus-style-vars" : " file:../drylus-style-vars" ,
6868 "@drawbotics/icons" : " file:../icons" ,
69- "@drawbotics/use-screen-size" : " ^3.0.1 " ,
69+ "@drawbotics/use-screen-size" : " ^3.1.0 " ,
7070 "@emotion/css" : " ^11.13.5" ,
7171 "@emotion/react" : " ^11.14.0" ,
7272 "dayjs" : " ^1.11.19" ,
Original file line number Diff line number Diff line change 2020 "@dnd-kit/utilities" : " ^3.2.2" ,
2121 "@drawbotics/icons" : " file:../icons" ,
2222 "@drawbotics/react-drylus" : " file:../react-drylus" ,
23- "@drawbotics/use-screen-size" : " ^3.0.1 " ,
23+ "@drawbotics/use-screen-size" : " ^3.1.0 " ,
2424 "@drawbotics/vanilla-drylus" : " file:../vanilla-drylus" ,
2525 "@emotion/css" : " ^11.13.5" ,
2626 "hast-util-to-string" : " ^1.0.1" ,
Original file line number Diff line number Diff line change 99 "sideEffects" : false ,
1010 "scripts" : {
1111 "clean" : " rimraf dist" ,
12- "sync" : " node scripts/sync.js " ,
12+ "sync" : " node scripts/sync.mjs " ,
1313 "watch:lib" : " NODE_ENV=development webpack --config webpack.config.js --watch" ,
1414 "watch:react" : " node ./scripts/watch-react.js" ,
1515 "watch" : " NODE_ENV=development webpack --config webpack.config.js --watch" ,
Original file line number Diff line number Diff line change 1- const path = require ( 'path' ) ;
2- const s3sync = require ( '@drawbotics/s3sync' ) ;
1+ /* global process */
2+ import path from 'path' ;
3+ import { fileURLToPath } from 'url' ;
4+ import s3sync from '@drawbotics/s3sync' ;
5+ import { createRequire } from 'module' ;
6+
7+ const require = createRequire ( import . meta. url ) ;
8+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
39
410const version = require ( '../package.json' ) . version ;
511
You can’t perform that action at this time.
0 commit comments