diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..6ad7cc0 --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/sub/.pnp.cjs b/sub/.pnp.cjs index 6ec209f..01699bb 100755 --- a/sub/.pnp.cjs +++ b/sub/.pnp.cjs @@ -33,16 +33,37 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { [null, {\ "packageLocation": "./",\ "packageDependencies": [\ + ["random", "npm:3.0.6"],\ ["uuid", "npm:9.0.0"]\ ],\ "linkType": "SOFT"\ }]\ ]],\ + ["random", [\ + ["npm:3.0.6", {\ + "packageLocation": "./.yarn/cache/random-npm-3.0.6-77ead135c8-3e900ebada.zip/node_modules/random/",\ + "packageDependencies": [\ + ["random", "npm:3.0.6"],\ + ["seedrandom", "npm:3.0.5"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["seedrandom", [\ + ["npm:3.0.5", {\ + "packageLocation": "./.yarn/cache/seedrandom-npm-3.0.5-6946e8f8db-728b56bc3b.zip/node_modules/seedrandom/",\ + "packageDependencies": [\ + ["seedrandom", "npm:3.0.5"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["subproject", [\ ["workspace:.", {\ "packageLocation": "./",\ "packageDependencies": [\ ["subproject", "workspace:."],\ + ["random", "npm:3.0.6"],\ ["uuid", "npm:9.0.0"]\ ],\ "linkType": "SOFT"\ diff --git a/sub/main.js b/sub/main.js index 189db3e..b12e395 100644 --- a/sub/main.js +++ b/sub/main.js @@ -1,2 +1,5 @@ const { v4: uuidv4 } = require('uuid'); +const random = require('random') + console.log(uuidv4()) +console.log(random.int(20,30)) diff --git a/sub/package.json b/sub/package.json index cb3b077..5886482 100644 --- a/sub/package.json +++ b/sub/package.json @@ -2,6 +2,7 @@ "name": "subproject", "packageManager": "yarn@3.2.2", "dependencies": { + "random": "^3.0.6", "uuid": "^9.0.0" } } diff --git a/sub/yarn.lock b/sub/yarn.lock index 4e9921a..84f1923 100644 --- a/sub/yarn.lock +++ b/sub/yarn.lock @@ -5,10 +5,27 @@ __metadata: version: 6 cacheKey: 8 +"random@npm:^3.0.6": + version: 3.0.6 + resolution: "random@npm:3.0.6" + dependencies: + seedrandom: ^3.0.5 + checksum: 3e900ebadafda77e6e321180e1f813a08adbed35dcc0d283fea4d73ddd82eaabd5aa1c26ce251d6e7e3205650ae5d9210a82be058b03e4607eb3ae53adb8798b + languageName: node + linkType: hard + +"seedrandom@npm:^3.0.5": + version: 3.0.5 + resolution: "seedrandom@npm:3.0.5" + checksum: 728b56bc3bc1b9ddeabd381e449b51cb31bdc0aa86e27fcd0190cea8c44613d5bcb2f6bb63ed79f78180cbe791c20b8ec31a9627f7b7fc7f476fd2bdb7e2da9f + languageName: node + linkType: hard + "subproject@workspace:.": version: 0.0.0-use.local resolution: "subproject@workspace:." dependencies: + random: ^3.0.6 uuid: ^9.0.0 languageName: unknown linkType: soft