source: node_modules/fast-json-patch/tsc-to-mjs.sh

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 405 bytes
Line 
1#!/bin/bash
2cd module
3mv core.js core.mjs && mv duplex.js duplex.mjs && mv helpers.js helpers.mjs
4# Unlike Ubuntu, OS X requires the extension to be explicitly specified
5# https://myshittycode.com/2014/07/24/os-x-sed-extra-characters-at-the-end-of-l-command-error/
6if [[ "$OSTYPE" == "darwin"* ]]; then
7 sed -i '' 's/\.js/\.mjs/g' duplex.mjs core.mjs
8else
9 sed -i 's/\.js/\.mjs/g' duplex.mjs core.mjs
10fi
Note: See TracBrowser for help on using the repository browser.