diff --git a/jsr.json b/jsr.json new file mode 100644 index 0000000000..82413e4c66 --- /dev/null +++ b/jsr.json @@ -0,0 +1,13 @@ +{ + "name": "@jotai/jotai", + "version": "2.7.0-jsr.0", + "exports": { + ".": "./src/index.ts", + "./vanilla": "./src/vanilla.ts", + "./vanilla/utils": "./src/vanilla/utils.ts", + "./react": "./src/react.ts", + "./react/utils": "./src/react/utils.ts" + }, + "include": ["src/**"], + "exclude": ["website/**"] +} diff --git a/src/vanilla/utils/constants.ts b/src/vanilla/utils/constants.ts index 0b35c80e60..3ccf5091a8 100644 --- a/src/vanilla/utils/constants.ts +++ b/src/vanilla/utils/constants.ts @@ -1,3 +1,3 @@ -export const RESET = Symbol( +export const RESET: unique symbol = Symbol( import.meta.env?.MODE !== 'production' ? 'RESET' : '', )