├── .eslintignore ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .idea ├── .gitignore ├── angular-settings.xml ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── compiler.xml ├── dictionaries │ └── project.xml ├── encodings.xml ├── inspectionProfiles │ └── Project_Default.xml ├── modules.xml ├── resolve-typescript-plugin.iml ├── runConfigurations │ ├── fix.xml │ ├── lint.xml │ └── test.xml ├── vcs.xml └── watcherTasks.xml ├── .npmignore ├── .prettierignore ├── .yarn ├── plugins │ └── @yarnpkg │ │ └── plugin-typescript.cjs └── releases │ └── yarn-3.5.0.cjs ├── .yarnrc.yml ├── LICENSE.md ├── README.md ├── fix-types-for-back-compat.js ├── index.test.ts ├── index.ts ├── package.json ├── renovate.json ├── test-projects ├── backward-compatibility-pre-1.1.2-config-cjs │ ├── .yarnrc.yml │ ├── index.ts │ ├── package.json │ ├── test.ts │ ├── tsconfig.json │ ├── webpack.config.cjs │ └── yarn.lock ├── type-module-config-cjs-import-js │ ├── .yarnrc.yml │ ├── index.ts │ ├── package.json │ ├── test.ts │ ├── tsconfig.json │ ├── webpack.config.cjs │ └── yarn.lock ├── type-module-config-js-import-js │ ├── .yarnrc.yml │ ├── index.ts │ ├── package.json │ ├── test.ts │ ├── tsconfig.json │ ├── webpack.config.js │ └── yarn.lock ├── webpack-4-compatibility-type-commonjs │ ├── .yarnrc.yml │ ├── index.ts │ ├── package.json │ ├── test.ts │ ├── tsconfig.json │ ├── webpack.config.js │ └── yarn.lock └── webpack-4-compatibility-type-module │ ├── .yarnrc.yml │ ├── index.ts │ ├── package.json │ ├── test.ts │ ├── tsconfig.json │ ├── webpack.config.cjs │ └── yarn.lock ├── tsconfig.json ├── tsconfig.test.json └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | *.js 4 | *.d.ts 5 | *.js.map 6 | !/types/*.d.ts -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: [push, pull_request] 3 | env: 4 | CI: true 5 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} 6 | NPM_TOKEN: ${{secrets.NPM_TOKEN}} 7 | DEPLOY_NODE_VERSION: 19.x 8 | jobs: 9 | build-and-test: 10 | name: Build and Test 11 | runs-on: ubuntu-latest 12 | strategy: 13 | matrix: 14 | node-version: [14.x, 16.x, 18.x, 19.x] 15 | steps: 16 | - name: Find yarn cache 17 | id: find-yarn-cache 18 | run: echo "::set-output name=dir::$(yarn cache dir)" 19 | - name: git checkout 20 | uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 21 | - name: Cache yarn dependencies 22 | uses: actions/cache@v3 23 | with: 24 | path: ${{steps.find-yarn-cache.outputs.dir}} 25 | key: v3-${{runner.os}}-node${{matrix.node-version}}-yarn-${{hashFiles('**/yarn.lock')}} 26 | restore-keys: v3-${{runner.os}}-node${{matrix.node-version}}-yarn- 27 | - name: Set up Node.js v${{matrix.node-version}} 28 | uses: actions/setup-node@v3 29 | with: 30 | node-version: ${{matrix.node-version}} 31 | - run: yarn 32 | - run: yarn test 33 | - run: yarn lint 34 | deploy: 35 | name: Deploy 36 | runs-on: ubuntu-latest 37 | needs: build-and-test 38 | steps: 39 | - name: Find yarn cache 40 | id: find-yarn-cache 41 | run: echo "::set-output name=dir::$(yarn cache dir)" 42 | - name: git checkout 43 | uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 44 | - name: Cache yarn dependencies 45 | uses: actions/cache@v3 46 | with: 47 | path: ${{steps.find-yarn-cache.outputs.dir}} 48 | key: v3-${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-${{hashFiles('**/yarn.lock')}} 49 | restore-keys: v3-${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn- 50 | - name: Set up Node.js 51 | uses: actions/setup-node@v3 52 | with: 53 | node-version: ${{env.DEPLOY_NODE_VERSION}} 54 | - run: yarn 55 | - run: yarn semantic-release 56 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build output 2 | *.js 3 | *.d.ts 4 | *.js.map 5 | !/types/*.d.ts 6 | !/fix-types-for-back-compat.js 7 | !/test-projects/**/webpack.config.js 8 | 9 | # Yarn 2 10 | node_modules 11 | .pnp.* 12 | /**/.yarn/* 13 | !/**/.yarn/patches 14 | !/**/.yarn/plugins 15 | !/**/.yarn/releases 16 | !/**/.yarn/sdks 17 | !/**/.yarn/versions 18 | yarn-error.log 19 | 20 | /.idea/workspace.xml 21 | /.idea/tasks.xml 22 | /.idea/shelf 23 | dist 24 | package-lock.json 25 | npm-debug.log* 26 | 27 | # macOS 28 | .DS_Store 29 | .AppleDouble 30 | .LSOverride 31 | ._* 32 | .DocumentRevisions-V100 33 | .fseventsd 34 | .Spotlight-V100 35 | .TemporaryItems 36 | .Trashes 37 | .VolumeIcon.icns 38 | .AppleDB 39 | .AppleDesktop 40 | Network Trash Folder 41 | Temporary Items 42 | .apdisk 43 | 44 | # Windows 45 | Thumbs.db 46 | ehthumbs.db 47 | Desktop.ini 48 | $RECYCLE.BIN/ 49 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | -------------------------------------------------------------------------------- /.idea/angular-settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 9 | 10 | 15 | 16 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/dictionaries/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | adserver 5 | adtech 6 | adzerk 7 | anims 8 | autoreload 9 | autoshow 10 | avinfo 11 | bitflags 12 | bitstream 13 | blonde 14 | builddir 15 | cashplus 16 | cassidy 17 | cnsm 18 | cnsmbl 19 | codegen 20 | compositing 21 | conrod 22 | contoso 23 | coord 24 | cors 25 | creatives 26 | crypto 27 | cssnano 28 | ctor 29 | danielcassidy 30 | dcgw 31 | dealid 32 | decl 33 | declarator 34 | demultiplexor 35 | deserializing 36 | distributables 37 | djcsdy 38 | doctype 39 | domready 40 | domstring 41 | downlevel 42 | dropdown 43 | eachify 44 | emoji 45 | emojis 46 | endian 47 | enoent 48 | eofline 49 | errexit 50 | errno 51 | escodegen 52 | eslint 53 | esnext 54 | esprima 55 | estree 56 | esutils 57 | etag 58 | exsl 59 | exslt 60 | focusable 61 | formathhmm 62 | formathhmmss 63 | fpdownload 64 | fprintf 65 | freetype 66 | fullscreen 67 | gandi 68 | gdpr 69 | getflashplayer 70 | github 71 | gitignore 72 | gitignored 73 | glium 74 | glsl 75 | googletag 76 | googletagservices 77 | gzip 78 | hevc 79 | highp 80 | hotseat 81 | iana 82 | ibotta 83 | iframe 84 | imei 85 | inferrable 86 | interop 87 | iterables 88 | jank 89 | janky 90 | jboss 91 | jira 92 | jsdom 93 | jwplayer 94 | keydown 95 | keymapper 96 | keymapping 97 | keypress 98 | keyup 99 | launchable 100 | licensors 101 | lockfile 102 | macromedia 103 | mailto 104 | matchers 105 | mediump 106 | mergeable 107 | mheg 108 | minecraft 109 | minification 110 | minify 111 | minimatch 112 | mkdir 113 | mojang 114 | monoid 115 | mpeg 116 | mraid 117 | msys 118 | mtasc 119 | multiline 120 | myopenid 121 | nano 122 | noiseinstitute 123 | noninfringement 124 | nullable 125 | nums 126 | offscreen 127 | oncanceled 128 | oncompleted 129 | onfailed 130 | onload 131 | onpaused 132 | onprogress 133 | onsubmit 134 | onsuccess 135 | openfl 136 | overscroll 137 | overscrolling 138 | packetized 139 | pageview 140 | parameterize 141 | parens 142 | parsehhmmss 143 | passphrase 144 | paypal 145 | pbjs 146 | pipefail 147 | pixelated 148 | ponyfill 149 | ponyfills 150 | preact 151 | preallocated 152 | prebid 153 | preblock 154 | preloaded 155 | preloader 156 | preloaders 157 | preloading 158 | prepack 159 | quadricentennium 160 | rakefile 161 | ramda 162 | recents 163 | redux 164 | referer 165 | remoteorigin 166 | requirejs 167 | resized 168 | restify 169 | rgba 170 | runnables 171 | samsung 172 | scanf 173 | screensaver 174 | scripps 175 | searchables 176 | semver 177 | seqnum 178 | serverbid 179 | servicer 180 | setasap 181 | shaders 182 | shockwave 183 | skippable 184 | slideshow 185 | softwareventures 186 | sourcemaps 187 | spritemap 188 | spritesheet 189 | sqrt 190 | srcdir 191 | subarray 192 | swrve 193 | telecom 194 | timesheet 195 | titlebar 196 | tizen 197 | todos 198 | toggl 199 | tortious 200 | touchbar 201 | transitionable 202 | transpile 203 | tsconfig 204 | tsconfigs 205 | tslib 206 | tslint 207 | tsutils 208 | typechecking 209 | typesafe 210 | typings 211 | uglify 212 | unescaped 213 | unsubscribe 214 | unsynchronization 215 | velope 216 | videojs 217 | vpaid 218 | vungle 219 | webgl 220 | webglcontextlost 221 | webglcontextrestored 222 | webm 223 | webos 224 | webp 225 | webstorm 226 | wget 227 | winit 228 | wmode 229 | wordlist 230 | workflows 231 | wrappy 232 | xalan 233 | xmlns 234 | xslts 235 | zlib 236 | 237 | 238 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/resolve-typescript-plugin.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/runConfigurations/fix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |