From 3049cad6a542dbc397c2650185e1bd06d49b7b99 Mon Sep 17 00:00:00 2001 From: Steven Levithan Date: Fri, 15 Nov 2024 14:42:47 +0100 Subject: [PATCH] Change ./atomic export to ./internals --- package.json | 8 ++++---- src/internals.js | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 src/internals.js diff --git a/package.json b/package.json index 2ca06bb..adab0a0 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "import": "./dist/regex.mjs", "require": "./dist/regex.cjs" }, - "./atomic": { - "types": "./types/atomic.d.ts", - "import": "./src/atomic.js" + "./internals": { + "types": "./types/internals.d.ts", + "import": "./src/internals.js" } }, "browser": "./dist/regex.min.js", @@ -22,7 +22,7 @@ "bundle:global": "esbuild src/regex.js --global-name=Regex --bundle --minify --sourcemap --outfile=dist/regex.min.js", "bundle:esm": "esbuild src/regex.js --format=esm --bundle --sourcemap --outfile=dist/regex.mjs", "bundle:cjs": "esbuild src/regex.js --format=cjs --bundle --sourcemap --outfile=dist/regex.cjs", - "types": "tsc src/regex.js --rootDir src --declaration --allowJs --emitDeclarationOnly --outDir types", + "types": "tsc src/regex.js src/internals.js --rootDir src --declaration --allowJs --emitDeclarationOnly --outDir types", "prebuild": "rm -rf dist/* types/*", "build": "npm run bundle:global && npm run bundle:esm && npm run bundle:cjs && npm run types", "pretest": "npm run build", diff --git a/src/internals.js b/src/internals.js new file mode 100644 index 0000000..7fd821c --- /dev/null +++ b/src/internals.js @@ -0,0 +1,2 @@ +export {atomic, possessive} from './atomic.js'; +export {RegExpSubclass} from './subclass.js';