{
  "name": "amd.ts",
  "version": "0.0.1",
  "description": "A specialized AMD implementation meant to support modules generated by the TypeScript compiler.",
  "scripts": {
    "clean": "rm -Rf ./build",
    "build": "tsc -p tsconfig.release.json && node build/amd.js",
    "test": "tsc && node build/test.js"
  },
  "repository": {
    "type": "git",
    "url": "git+ssh://git@gitlab.com/federico-lox/amd.ts.git"
  },
  "keywords": [
    "typescript",
    "amd",
    "javascript",
    "module",
    "bundle"
  ],
  "author": "Federico \"Lox\" Lucignano",
  "license": "MIT",
  "bugs": {
    "url": "https://gitlab.com/federico-lox/amd.ts/issues"
  },
  "homepage": "https://gitlab.com/federico-lox/amd.ts#README",
  "devDependencies": {
    "typescript": "1.8.10"
  }
}

{
  "name": "amd.ts",
  "version": "0.0.1",
  "description": "A specialized AMD implementation meant to support modules generated by the TypeScript compiler.",
  "main": "./build/amd.js",
  "scripts": {
    "build": "tsc -p tsconfig.release.json && node build/amd.js",
    "clean": "rm -Rf ./build",
    "prepublish": "npm run test && npm run clean && npm run build",
    "test": "tsc && node build/test.js"
  },
  "repository": {
    "type": "git",
    "url": "git+ssh://git@gitlab.com/federico-lox/amd.ts.git"
  },
  "keywords": [
    "typescript",
    "amd",
    "javascript",
    "module",
    "bundle"
  ],
  "author": "Federico \"Lox\" Lucignano",
  "license": "MIT",
  "bugs": {
    "url": "https://gitlab.com/federico-lox/amd.ts/issues"
  },
  "homepage": "https://gitlab.com/federico-lox/amd.ts#README",
  "devDependencies": {
    "typescript": "1.8.10"
  }
}

Add prepublish script for NPM
Add prepublish script for NPM
