Skip to content

Commit

Permalink
feat: support operating without a Program
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Aug 1, 2022
1 parent a110c4c commit d489cbc
Show file tree
Hide file tree
Showing 41 changed files with 3,580 additions and 2,224 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:

strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-18.04]
node: [14, 16, 17]
os: [windows-latest, macos-latest, ubuntu-latest]
node: [14.19.0, 16, 17, 18]

steps:
- name: Checkout code
Expand Down
371 changes: 318 additions & 53 deletions README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions loader.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line @typescript-eslint/no-require-imports
require("./dist/cjs/loader.cjs");
215 changes: 114 additions & 101 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,84 +1,85 @@
{
"name": "@wessberg/di-compiler",
"version": "2.2.6",
"description": "A Custom Transformer for Typescript that enables compile-time Dependency Injection",
"scripts": {
"generate:sandhog": "sandhog all --yes",
"generate:changelog": "standard-changelog --first-release",
"generate:all": "pnpm run generate:sandhog && pnpm run generate:changelog",
"clean": "rimraf dist",
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
"test": "ava",
"prebuild": "pnpm run clean",
"build": "pnpm run prebuild && pnpm run rollup",
"prewatch": "pnpm run clean",
"watch": "pnpm run prewatch && pnpm run rollup -- --watch",
"rollup": "rollup -c rollup.config.mjs",
"preversion": "pnpm run lint && pnpm run build",
"version": "pnpm run preversion && pnpm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn",
"update:check": "pnpx npm-check-updates -x typescript-*,ava --dep dev,prod",
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava --dep dev,prod && pnpm update && pnpm install"
},
"keywords": [
"DI",
"dependency injection",
"ioc",
"inversion",
"service",
"container",
"newable",
"reflection",
"singleton",
"transient",
"compiler"
],
"files": [
"dist/**/*.*",
"register/*.*"
],
"contributors": [
{
"name": "Frederik Wessberg",
"email": "frederikwessberg@hotmail.com",
"url": "https://github.com/wessberg",
"imageUrl": "https://avatars2.githubusercontent.com/u/20454213?s=460&v=4",
"role": "Lead Developer",
"twitter": "FredWessberg",
"github": "wessberg"
}
],
"license": "MIT",
"devDependencies": {
"@types/node": "^18.0.6",
"@types/prettier": "^2.6.3",
"@types/semver": "^7.3.10",

"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"@wessberg/ts-config": "^2.0.4",
"name": "@wessberg/di-compiler",
"version": "2.2.6",
"description": "A Custom Transformer for Typescript that enables compile-time Dependency Injection",
"scripts": {
"generate:sandhog": "sandhog all --yes",
"generate:changelog": "standard-changelog --first-release",
"generate:all": "pnpm run generate:sandhog && pnpm run generate:changelog",
"clean": "rimraf dist",
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
"test": "ava",
"prebuild": "pnpm run clean",
"build": "pnpm run prebuild && pnpm run rollup",
"prewatch": "pnpm run clean",
"watch": "pnpm run prewatch && pnpm run rollup:watch",
"rollup": "rollup -c rollup.config.mjs",
"rollup:watch": "rollup -c rollup.config.mjs --watch",
"preversion": "pnpm run lint && pnpm run build",
"version": "pnpm run preversion && pnpm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn",
"update:check": "pnpx npm-check-updates -x typescript-*,ava --dep dev,prod",
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava --dep dev,prod && pnpm update && pnpm install"
},
"keywords": [
"DI",
"dependency injection",
"ioc",
"inversion",
"service",
"container",
"newable",
"reflection",
"singleton",
"transient",
"compiler"
],
"files": [
"dist/**/*.*",
"loader.*",
"ts-node-loader.*"
],
"contributors": [
{
"name": "Frederik Wessberg",
"email": "frederikwessberg@hotmail.com",
"url": "https://github.com/wessberg",
"imageUrl": "https://avatars2.githubusercontent.com/u/20454213?s=460&v=4",
"role": "Lead Developer",
"twitter": "FredWessberg",
"github": "wessberg"
}
],
"license": "MIT",
"devDependencies": {
"@types/node": "^18.6.2",
"@types/prettier": "^2.6.4",
"@types/semver": "^7.3.10",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@wessberg/ts-config": "^2.0.4",
"@wessberg/prettier-config": "^1.0.0",
"rollup-plugin-ts": "^3.0.2",
"semver": "^7.3.7",
"ava": "3.15.0",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.3",
"husky": "^8.0.1",
"np": "^7.6.2",
"pnpm": "^7.6.0",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"rollup": "^2.77.0",
"sandhog": "^2.0.2",
"standard-changelog": "^2.0.27",
"crosspath": "^2.0.0",
"ts-node": "^10.9.1",
"npm-check-updates": "^15.3.4",
"typescript": "^4.7.4",
"rollup-plugin-ts": "^3.0.2",
"semver": "^7.3.7",
"ava": "3.15.0",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.4",
"husky": "^8.0.1",
"np": "^7.6.2",
"pnpm": "^7.7.0",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"rollup": "^2.77.2",
"sandhog": "^2.0.2",
"standard-changelog": "^2.0.27",
"ts-node": "^10.9.1",
"npm-check-updates": "^16.0.3",
"@esbuild-kit/esm-loader": "^2.4.2",
"typescript": "^4.7.4",
"typescript-3-4-1": "npm:typescript@3.4.1",
"typescript-3-5-1": "npm:typescript@3.5.1",
"typescript-3-6-2": "npm:typescript@3.6.2",
Expand All @@ -92,34 +93,46 @@
"typescript-4-4-2": "npm:typescript@4.4.2",
"typescript-4-5-4": "npm:typescript@4.5.4",
"typescript-4-6-4": "npm:typescript@4.6.4"
},
"dependencies": {
"helpertypes": "^0.0.18",
"ts-evaluator": "^1.0.3",
"compatfactory": "^1.0.1"
},
"peerDependencies": {
"typescript": ">=3.x || >= 4.x"
},
"repository": {
"type": "git",
"url": "https://github.com/wessberg/di-compiler.git"
},
"bugs": {
"url": "https://github.com/wessberg/di-compiler/issues"
},
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
},
"type": "module",
"dependencies": {
"crosspath": "^2.0.0",
"helpertypes": "^0.0.18",
"pirates": "^4.0.5",
"get-tsconfig": "4.2.0",
"ts-evaluator": "^1.0.7",
"compatfactory": "^1.0.1"
},
"peerDependencies": {
"typescript": ">=3.x || >= 4.x"
},
"repository": {
"type": "git",
"url": "https://github.com/wessberg/di-compiler.git"
},
"bugs": {
"url": "https://github.com/wessberg/di-compiler/issues"
},
"exports": {
"./loader": {
"import": "./dist/esm/loader.js",
"require": "./dist/cjs/loader.cjs"
},
"./ts-node-loader": {
"require": "./ts-node-loader.cjs"
},
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
}
},
"type": "module",
"types": "./dist/esm/index.d.ts",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"engines": {
"engines": {
"node": ">=14.19.0"
},
"prettier": "@wessberg/prettier-config",
"prettier": "@wessberg/prettier-config",
"ava": {
"files": [
"test/**/**.test.ts"
Expand Down
Loading

0 comments on commit d489cbc

Please sign in to comment.