diff --git a/CHANGELOG.md b/CHANGELOG.md index 15e9d554..ba1c4f73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. Dates are displayed in UTC. +#### v5.2.1 + +- Fix location of `.d.ts` files so that `sources.d.ts` is correctly detected. + #### v5.2.0 - Add `set-methods` polyfills [`#40`](https://github.com/mrhenry/polyfill-library/pull/40) by @mhassan1 diff --git a/types/index.d.ts b/lib/index.d.ts similarity index 100% rename from types/index.d.ts rename to lib/index.d.ts diff --git a/types/sources.d.ts b/lib/sources.d.ts similarity index 100% rename from types/sources.d.ts rename to lib/sources.d.ts diff --git a/package-lock.json b/package-lock.json index 292189f7..00d31f96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mrhenry/polyfill-library", - "version": "5.2.0", + "version": "5.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mrhenry/polyfill-library", - "version": "5.2.0", + "version": "5.2.1", "license": "MIT", "workspaces": [ "polyfills/**/*" diff --git a/package.json b/package.json index f17b1cac..46995873 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "@mrhenry/polyfill-library", - "version": "5.2.0", + "version": "5.2.1", "description": "A polyfill combinator", "main": "lib/index.js", - "types": "types/index.d.ts", + "types": "lib/index.d.ts", "repository": { "type": "git", "url": "https://github.com/mrhenry/polyfill-library.git" @@ -19,7 +19,7 @@ "lint-config": "node tasks/lint-config/index.js", "clean": "node tasks/clean", "build": "npm run clean && node tasks/updatesources && node tasks/buildsources/buildsources && npm run build-types", - "build-types": "tsc lib/*.js --declaration --allowJs --emitDeclarationOnly --outDir types", + "build-types": "tsc lib/*.js --declaration --allowJs --emitDeclarationOnly --outDir lib", "watch": "npm run clean && node tasks/updatesources && node tasks/buildsources/watchsource", "fmt": "eslint . --fix", "test-end-to-end": "node --test 'test/end-to-end/**/*.test.js'", diff --git a/tasks/clean.js b/tasks/clean.js index 7aa8a226..00c95069 100644 --- a/tasks/clean.js +++ b/tasks/clean.js @@ -9,10 +9,11 @@ const cwd = path.join(__dirname, '../'); const globOptions = { cwd: cwd }; console.log('Cleaning dist...'); -fs.rmSync('./polyfills/__dist', { recursive: true, force: true }); +fs.rmSync(path.join('polyfills', '__dist'), { recursive: true, force: true }); console.log('Cleaning types...'); -fs.rmSync('./types', { recursive: true, force: true }); +fs.rmSync(path.join('lib', 'index.d.ts'), { recursive: true, force: true }); +fs.rmSync(path.join('lib', 'sources.d.ts'), { recursive: true, force: true }); console.log('Cleaning polyfills...'); glob('polyfills/**/config.toml', globOptions).then((files) => {