#!/bin/sh
# Wrapper script to execute cmte.js with node options
# Suppresses the punycode deprecation warning (DEP0040)

# Find the directory where the globally installed script lives relative to this wrapper
# This assumes npm links the bin script adjacent to the actual package files
DIR=$(cd "$(dirname "$0")/../lib/node_modules/cmte" && pwd)

# Execute the actual script using node with the specific warning suppressed
exec node --no-warnings=DEP0040 "$DIR/dist/bin/cmte.js" "$@" 