UNPKG

restrict-imports-loader

Version:

A Webpack loader to restrict imports in ES and TypeScript

88 lines (87 loc) 2.38 kB
{ "name": "restrict-imports-loader", "version": "3.2.6", "description": "A Webpack loader to restrict imports in ES and TypeScript", "keywords": [ "loader", "import", "package", "module", "restrict", "forbidden", "TypeScript", "ES6", "webpack" ], "author": { "name": "Simon Alling", "email": "alling.simon@gmail.com", "url": "https://simonalling.se" }, "license": "MIT", "homepage": "https://github.com/simonalling/restrict-imports-loader", "repository": { "type": "git", "url": "https://github.com/simonalling/restrict-imports-loader" }, "bugs": { "url": "https://github.com/simonalling/restrict-imports-loader" }, "main": "dist/index", "files": [ "dist/*" ], "scripts": { "build-cjs": "npm run clean && npm run compile-cjs", "build-esm": "npm run clean && npm run compile-esm", "compile-cjs": "tsc -d --module CommonJS -p .", "compile-esm": "tsc -d -p .", "build": "npm run clean && npm run compile-esm && npm run rename && npm run compile-cjs", "clean": "rm -rf dist/*", "lint": "tslint --project .", "prepublishOnly": "npm run verify && cli-confirm 'Publish?'", "rename": "renamer --force --find \"/\\.js$/\" --replace \".mjs\" \"dist/**\"", "test": "jest", "test-clean": "jest --no-cache", "verify": "repository-check-dirty && npm run build && npm run lint && npm run test-clean && npm pack" }, "sideEffects": false, "jest": { "globals": { "ts-jest": { "tsConfig": "<rootDir>/tsconfig.json" } }, "transform": { "^.+\\.ts$": "ts-jest" }, "testRegex": ".+\\.test\\.ts$", "moduleFileExtensions": [ "ts", "js" ] }, "devDependencies": { "@types/enhanced-resolve": "^3.0.6", "@types/jest": "^24.0.23", "@types/webpack": "^4.39.9", "cli-confirm": "^1.0.1", "enhanced-resolve": "^4.1.1", "jest": "^24.9.0", "no-emit-webpack-plugin": "^2.0.1", "renamer": "^1.1.4", "repository-check-dirty": "^1.0.2", "ts-jest": "^24.1.0", "ts-loader": "^8.4.0", "tslint": "^5.20.1", "typescript": "^3.7.2", "webpack": "^4.41.2" }, "dependencies": { "@types/json-schema": "^7.0.3", "@types/loader-utils": "^1.1.3", "loader-utils": "^1.2.3", "schema-utils": "^2.5.0", "typescript": "^3.7.2" } }