Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
@ankit
ankit / tsdx.config.js
Created January 5, 2021 01:42
Custom tsdx.config.js to support @zerollup/ts-transform-paths and ttypescript
// https://github.com/zerkalica/zerollup/tree/master/packages/ts-transform-paths
const ttypescript = require('ttypescript');
const typescript = require('rollup-plugin-typescript2');
module.exports = {
rollup(config, options) {
const rpt2Plugin = config.plugins.find(p => p.name === 'rpt2');
const rpt2PluginIndex = config.plugins.indexOf(rpt2Plugin);
const tsconfigPath = options.tsconfig || 'tsconfig.json';