@normed/bundle 2.1.0 → 2.1.1

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.
@@ -1,9 +1,10 @@
1
1
  import "@normed/json-types";
2
2
  import { RefinementFunctionType } from "@normed/refinements";
3
3
  import { Platform, BuildConfig } from "./types";
4
+ export declare function escapeRegExp(string: string): string;
4
5
  export declare function groupBy<O>(objs: O[], keys: (keyof O)[]): O[][];
5
6
  export declare function readPackageJson(buildConfig: BuildConfig): Promise<PackageJson>;
6
- export declare function getPlatformPart(file: string): null | "static" | "browser" | "node" | "web" | "server";
7
+ export declare function getPlatformPart(file: string): null | "static" | "browser" | "node" | Platform;
7
8
  export declare function getPlatform(file: string, basePlatform: Platform): Platform;
8
9
  export declare function divide<A, B>(list: (A | B)[], divider: (v: A | B) => v is A): [A[], B[]];
9
10
  export declare function join(...parts: (string | undefined)[]): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@normed/bundle",
3
3
  "author": "Normal Gaussian <normed.bundle@normal-gaussian.com>",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "bin": "bundles/bin/cli.js",
6
6
  "main": "bundles/index.js",
7
7
  "types": "dist",
@@ -10,7 +10,8 @@
10
10
  "clean": "echo \"Not cleaning\"",
11
11
  "really-clean": "rm -rf dist bundles bundles-a",
12
12
  "publish": "yarn npm publish --tolerate-republish",
13
- "build": "time tsc --project tsconfig.json && time node dist/bin/cli.js --outdir bundles-a && time node bundles-a/bin/cli.js && diff -r bundles-a bundles"
13
+ "build": "time tsc --project tsconfig.json && time node dist/bin/cli.js --outdir bundles-a && time node bundles-a/bin/cli.js && diff -r bundles-a bundles",
14
+ "build-a": "time tsc --project tsconfig.json && time node dist/bin/cli.js --outdir bundles-a"
14
15
  },
15
16
  "bundle": {
16
17
  "entrypoints": [