@idlebox/itypes 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idlebox/itypes",
3
3
  "type": "module",
4
- "version": "1.0.12",
4
+ "version": "1.0.14",
5
5
  "description": "some global variables copied from @types/node or dom",
6
6
  "keywords": [
7
7
  "Typescript",
@@ -10,11 +10,13 @@
10
10
  "typings"
11
11
  ],
12
12
  "devDependencies": {
13
- "@mpis/run": "^0.0.6"
13
+ "@mpis/run": "^0.0.11",
14
+ "@build-script/single-dog-asset": "latest"
14
15
  },
15
16
  "exports": {
16
17
  "./package.json": "./package.json"
17
18
  },
19
+ "sideEffects": false,
18
20
  "license": "MIT",
19
21
  "author": "GongT <admin@gongt.me>",
20
22
  "repository": "https://github.com/GongT/baobao",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@build-script/single-dog-asset/package/tsconfig.json"
3
+ }
@@ -1,25 +0,0 @@
1
- const { basename, resolve } = require('node:path');
2
- const { remove } = require('./remove.js');
3
-
4
- const pluginName = require(resolve(__dirname, '../package.json')).name;
5
- const PLUGIN_NAME = basename(pluginName);
6
-
7
- /**
8
- *
9
- * @param {import("@rushstack/heft").HeftSession} heftSession
10
- * @param {*} heftConfiguration
11
- * @param {*} options
12
- */
13
- function removeTypes(heftSession, heftConfiguration, _options = {}) {
14
- heftSession.hooks.build.tap(PLUGIN_NAME, (build) => {
15
- build.hooks.postBuild.tap(PLUGIN_NAME, (postBuild) => {
16
- postBuild.hooks.run.tapPromise(PLUGIN_NAME, async function codegen() {
17
- remove(heftConfiguration.buildFolder);
18
- });
19
- });
20
- });
21
- }
22
-
23
- module.exports.pluginName = pluginName;
24
- module.exports.PLUGIN_NAME = PLUGIN_NAME;
25
- module.exports.apply = removeTypes;