You will probably be interested in the Xec project. It allows you to run ts/js scripts outside of the npm package (without package.json and node_modules) by using its own implementation of loading modules from CDN.